sborod / ruby-instagram-scraper

А simple module for requests to Instagram without an API key.
MIT License
39 stars 29 forks source link

get_user_media_nodes undefined method for nil #15

Open chrisallick opened 6 years ago

chrisallick commented 6 years ago
2.5.0 :006 > RubyInstagramScraper.get_user_media_nodes("gopro")
Traceback (most recent call last):
        3: from /Users/chris.allick/.rvm/rubies/ruby-2.5.0/bin/irb:11:in `<main>'
        2: from (irb):6
        1: from /Users/chris.allick/.rvm/gems/ruby-2.5.0/gems/ruby-instagram-scraper-0.1.7/lib/ruby-instagram-scraper.rb:20:in `get_user_media_nodes'
NoMethodError (undefined method `[]' for nil:NilClass)