- Just run
pip install -r requirements.txtin projects home directory.
- Rename
example.db.pytodb.pyand enter your MongoDB connection string to the file.
movies.json contains setup data for movie scraping. Movies and their boxofficemojo.com Id, that was extracted from the URL of each movie, can be enlisted in the JSON file in order to be scraped.
[{
"name": "Birdman",
"boxOfficeId": "birdman",
"totalGross": 2000000
"release": new Date(),
"history": []
}]The scraping results are:
- Domestic Total Gross in $USD
python crawlHistories.pypython crawlMovies.pyDaily View: http://www.boxofficemojo.com/movies/?page=daily&view=chart&id=birdman.htm