dannyvassallo / insta_scrape

The instagram swiss army knife. Restores all deprecated hashtag functionality and grants public api access from instagram's front end without any of the authorization.
https://rubygems.org/gems/insta_scrape
MIT License
60 stars 27 forks source link

undefined method `image' for nil:NilClass #23

Closed fra0074 closed 7 years ago

fra0074 commented 7 years ago

on InstaScrape.user_info_and_posts(username) I got this error:

NoMethodError: undefined method image' for nil:NilClass from /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/insta_scrape-1.1.4/lib/insta_scrape.rb:191:inlog_posts'

Thanks

dannyvassallo commented 7 years ago

Can I see the code you are using?

On Jul 9, 2017 9:35 PM, "Francesco Ecclesie" notifications@github.com wrote:

on InstaScrape.user_info_and_posts(username) I got this error:

NoMethodError: undefined method image' for nil:NilClass from /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/ gems/insta_scrape-1.1.4/lib/insta_scrape.rb:191:inlog_posts'

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dannyvassallo/insta_scrape/issues/23, or mute the thread https://github.com/notifications/unsubscribe-auth/AFk4ryjg7gRlY-ecMzNcm0S0qbNCvcVOks5sMX_6gaJpZM4OSQzd .

fra0074 commented 7 years ago

I install your Gem on a clean new project, and from console I am calling:

r = InstaScrape.user_info_and_posts("foofighters") --> it works with this example

but with another username, like mine for example

r = InstaScrape.user_info_and_posts("fraeccl") --> NoMethodError: undefined method image' for nil:NilClass from /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/ gems/insta_scrape-1.1.4/lib/insta_scrape.rb:191:inlog_posts'

dannyvassallo commented 7 years ago

Is your instagram profile private?

fra0074 commented 7 years ago

yes it is, means the scrape does not work with private profile?

dannyvassallo commented 7 years ago

The scraper can't work with a private profile. It's a scraper. Anything it needs has to be public. That's the nature of this tool.

On Jul 10, 2017 6:22 PM, "Francesco Ecclesie" notifications@github.com wrote:

yes it is, means the scrape does not work with private profile?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dannyvassallo/insta_scrape/issues/23#issuecomment-314266931, or mute the thread https://github.com/notifications/unsubscribe-auth/AFk4r5NhGC5szz4SLb78Od-OtyTQuQycks5sMqQ_gaJpZM4OSQzd .

dannyvassallo commented 7 years ago

Closing this as it's not an actual problem.