Giter Site home page Giter Site logo

richardvenneman / instagrammer Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 5.0 51 KB

๐Ÿ“ท Instagrammer lets you fetch Instagram user info and posts

License: MIT License

Ruby 99.02% Shell 0.98%
ruby instagram instagram-api instagram-scraper instagram-client scraper

instagrammer's People

Contributors

dependabot-preview[bot] avatar richardvenneman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

instagrammer's Issues

Solved

It seems to not be returning anything:

>> user = Instagrammer.new("richardvenneman")
>> user.follower_count
Traceback (most recent call last):
        5: from /Users/username/.rbenv/versions/2.7.1/bin/irb:23:in `<main>'
        4: from /Users/username/.rbenv/versions/2.7.1/bin/irb:23:in `load'
        3: from /Users/username/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/irb-1.2.3/exe/irb:11:in `<top (required)>'
        2: from (irb):5
        1: from /Users/username/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/instagrammer-0.3.2/lib/instagrammer/user.rb:31:in `follower_count'
NoMethodError (undefined method `[]' for nil:NilClass)

ChromeDriver only supports Chrome version 74

Yesterday I did a deployment of this gem in production and I noticed this error when someone tries to fetch an Instagram feed:

session not created: This version of ChromeDriver only supports Chrome version 74 (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Linux 4.15.0-54-generic x86_64)

Is this a know issue? I'm running it with Dokku (should be similar to Heroku)

get_posts raises exception

Instagrammer.new("feistyfavorites").get_posts(1)

Raises:

โš ๏ธ expected to find json_ld nil at least 1 time but there were no matches

/Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/capybara-3.25.0/lib/capybara/node/finders.rb:253:in `block in all': expected to find json_ld nil at least 1 time but there were no matches (Capybara::ExpectationNotMet)
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/capybara-3.25.0/lib/capybara/node/base.rb:83:in `synchronize'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/capybara-3.25.0/lib/capybara/node/finders.rb:251:in `all'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/capybara-3.25.0/lib/capybara/node/finders.rb:281:in `first'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/capybara-3.25.0/lib/capybara/session.rb:749:in `block (2 levels) in <class:Session>'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/instagrammer-0.1.3/lib/instagrammer/post.rb:61:in `visit_page'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/instagrammer-0.1.3/lib/instagrammer/post.rb:10:in `initialize'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/instagrammer-0.1.3/lib/instagrammer/user.rb:95:in `new'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/instagrammer-0.1.3/lib/instagrammer/user.rb:95:in `block in get_posts'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/instagrammer-0.1.3/lib/instagrammer/user.rb:95:in `collect'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/instagrammer-0.1.3/lib/instagrammer/user.rb:95:in `get_posts'
	from /Users/jankeesvw/Library/Preferences/RubyMine2019.1/scratches/scratch_4.rb:1:in `<main>'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands/runner/runner_command.rb:38:in `perform'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/command/base.rb:65:in `perform'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/command.rb:46:in `invoke'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands.rb:18:in `<main>'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
	from /Users/jankeesvw/Documents/project/bin/rails:9:in `<main>'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `block in load'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `load'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /Users/jankeesvw/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from -e:1:in `<main>'

Process finished with exit code 1

Do you think I should patch this gem to make this work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.