Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bbelderbos/themoviedb
Python script to generate email alerts for upcoming, now-playing etc. movies, using the tmdb simple API wrapper
https://github.com/bbelderbos/themoviedb
Last synced: 1 day ago
JSON representation
Python script to generate email alerts for upcoming, now-playing etc. movies, using the tmdb simple API wrapper
- Host: GitHub
- URL: https://github.com/bbelderbos/themoviedb
- Owner: bbelderbos
- Created: 2015-11-02T00:37:23.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-29T00:01:12.000Z (almost 9 years ago)
- Last Synced: 2023-03-23T02:12:38.468Z (over 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project: python movie weekly email (using themoviedb API)
[Blog post](http://bobbelderbos.com/2015/11/project-weekly-movie-email-with-tmdbsimple-python/)
Usage: main.py [options]
Options:
-h, --help show this help message and exit
-a ACTOR, --actor=ACTOR
filter on actor (not yet implemented)
-c CATEGORY, --category=CATEGORY
category [now_playing, upcoming, top_rated, popular]
-d DIRECTOR, --director=DIRECTOR
filter on director (not yet implemented)
-g GENRES, --genres=GENRES
filter on genres (not yet implemented)
-l LISTING, --listing=LISTING
create email from themoviedb list URL
-m, --mailres mail the html to recipients
-n NUMRES, --numres=NUMRES
number of results
-p, --printres print the html## Examples
### print html for 10 now_playing movies
$ python main.py -c now_playing -n 10
shelve has already movie ID 206647, skipping
shelve has already movie ID 274854, skipping
shelve has already movie ID 201085, skipping
shelving info and credits for new movie ID 361931
time passed: 1
less than 2 seconds for 2 requests (max 3 req per second)
sleep 1 sec to make sure we don't hit the API request limit
shelving info and credits for new movie ID 227973
..done shelving
Spectre
Genres: Action, Adventure, Crime
### print and email a specific list from themoviedb
$ python main.py -l https://www.themoviedb.org/list/5637ff1dc3a3681b6101ed43 -pm
Downloading: https://www.themoviedb.org/list/5637ff1dc3a3681b6101ed43
shelving info and credits for new movie ID 18785
time passed: 2
shelving info and credits for new movie ID 8363
time passed: 1
less than 2 seconds for 2 requests (max 3 req per second)
sleep 1 sec to make sure we don't hit the API request limit
..done shelving
The Hangover
Genres: Comedy
Director: Todd Phillips
..=> emails out the HTML to recipient list
=> for hacker movies use -l https://www.themoviedb.org/list/5637d20d9251414ab701bb61