-
Notifications
You must be signed in to change notification settings - Fork 0
epitron/imdbthing
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
== SET IT UP ======================================== Install gems: $ gem install epitools $ gem install pry $ gem install mechanize -v 1.0 Or: $ bundle == MAKE IT GO ======================================= Run: $ ruby imdbthing.rb [ it'll scrape all the movies from IMDB on the first run and save them to "movies.dump" ] # Show all commands: pry(#<Movies>)> ls # Show all movies released by Warner Brothers: pry(#<Movies>)> warner.print # Show all movies released by MGM in 1975: pry(#<Movies>)> mgm.query { year == 1975 }.print # Display a graph of movie release frequency (by year): pry(#<Movies>)> timeline # Display a histogram of number of movies with "Love" in the title (per year) pry(#<Movies>)> movies.histo { title =~ /Love/ } If you want to add more movie studios, edit the COMPANIES table at the top of imdbthing.rb, delete movies.dump, then re-run the script. It'll automatically re-scrape all the companies (the previously scraped ones will be cached).
About
IMDB scraper and database and querything.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published