Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `[]' for nil:NilClass #2

Open
o-sam-o opened this issue Mar 6, 2011 · 3 comments
Open

undefined method `[]' for nil:NilClass #2

o-sam-o opened this issue Mar 6, 2011 · 3 comments

Comments

@o-sam-o
Copy link

o-sam-o commented Mar 6, 2011

ska:onbox sam$ irb
ruby-1.8.7-p249 > require 'rubygems'
=> true 
ruby-1.8.7-p249 > require 'rotten-tomatoes'
=> true 
ruby-1.8.7-p249 > Rotten_tomatoes::lucky_get_movie_info 'Avatar'
NoMethodError: undefined method `[]' for nil:NilClass
        from /Users/sam/.rvm/gems/ruby-1.8.7-p249@ob/gems/rotten-tomatoes-     0.2.0/lib/rotten-tomatoes.rb:64:in `lucky_get_movie_info'
        from (irb):3
@re5et
Copy link
Owner

re5et commented Mar 6, 2011

looks like rotten tomatoes totally changed their html structure, so the scraper is totally broken. I will likely work it out soon, but it won't be terribly quick as I am busy with other work at the moment.

@o-sam-o
Copy link
Author

o-sam-o commented Apr 15, 2011

Looks like they have an API now : http://developer.rottentomatoes.com/

@re5et
Copy link
Owner

re5et commented Apr 15, 2011

super awesome, that should make this a tad easier, will get to work on it tonight ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants