Client for the Instagram Web Service without Instagram API.
Implemented in Ruby using the Selenium and Mechanize module.
gem 'instagram_user'
And then execute:
$ bundle
Or install it yourself as:
$ gem install instagram_user
cli = InstagramUser.new(user_name: 'YOUR_USER_NAME', password: 'YOUR_PASSWORD')
# Get the follow list for the specified user
follows = cli.get_follows('instagram_user_name')
# => ["user_name1", "user_name2"...]
# Get the follower list for the specified user
followers = cli.get_followers('instagram_user_name')
# => ["user_name1", "user_name2"...]
# Follow the specified user
res = cli.create_follow('instagram_user_name')
# => true or false
# Unfollow the specified user
res = cli.delete_follow('instagram_user_name')
# => true or false
# get media for the specified tag
res = cli.get_medias_by_tag('japanesefood')
# => {"recent" => [...], "popularity" => [...]}
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the InstagramUser project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.