- Just run
pip install -r requirements.txt
in projects home directory.
- Rename
example.db.py
todb.py
and 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.py
python crawlMovies.py
Daily View: http://www.boxofficemojo.com/movies/?page=daily&view=chart&id=birdman.htm