To use it yourself:

create a flat text file called 'recipients' with one or more emails (each one on a new line);

use a cron job to call the script to send one or more notification alerts, I use the weekly.py script for this (note I also added a customized banner, if you don't want it modify generate_header in output.py).

Some things I picked up:

Apart from the end result - a rich html email with new movie details -it's nice to see what you can learn from this kind of project:

for any data mining, use the API if available, relying on HTML is trickier. Themoviedb has a great API I already used for my sharemovi.es site, for this exercise I used the friendly tmdbsimple Python wrapper.

instead of a text file or DB, I use the Python shelve for caching. I store movie IDs and movie details (info and credits = cast) as a key,value pairs. So data for each movie ID is downloaded once, then re-used for priting, mailing, etc. Also, storing objects is a pretty flex solution, you can load them from the shelve and call methods on them). See cache.py for its implementation. I used the shelve recently for the Safari new books project too (see here)

use several classes (files) to decouple the design (cache, mail, output generation, movie objects, handle movie lists). The code was easy to extend, for example to work with customized (themoviedb) lists. I only had to write some code to crawl the list page (tmdbsimple does not support lists), the subsequent actions of shelving, printing and emailing worked out of the box, passing a list of movie IDs.

optparse / OptionParser makes CLI switch handling very easy and compact, I use it all the time.

I learned how to Python email using bcc and how to exclude mails and API key from the code putting them in files and ignore them from version control with .gitignore, pretty important.

probably a couple of things more ... comment if you like to know more ...

Example mails

I. weekly

II. of a customized list (hacker movies)

Update 19.11.2015

You can now add movies from the newsletter to your sharemovi.es watchlist when FB logged in - see the small link at the "Released" line, alongside the IMDB link: