Skip to content
Generate a daily digest PDF in pocketmod booklet form to print out and enjoy
Pull request Compare This branch is 3 commits behind jwheare:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
output
working
.gitignore
LICENSE
README
digest.py
digestfetch.py
settings.example.py
sitecustomize.py

README

Generate a daily digest PDF in pocketmod booklet form to print out and enjoy.

See: http://www.pocketmod.com/

Usage:

    python digest.py

This will run through and fetch all the data, and save a PDF file in output/digest.pdf. The file will be opened when the script completes

I'm slowly filling in the pages of the booklet. I'll add them here in the order they appear:

1. Last.fm event recommendations
2. Tube line and station status
3. Twitter updates
4. Newsgator RSS headlines
5. Google calendar + Weather
6. Flickr photo spread left
7. Flickr photo spread right
8. 

Required libs:
- pylast 0.3 branch revision 163 (PATCHED see lib/pylast.diff)
  http://code.google.com/p/pylast/source/browse/branches/0.3/?r=163 GPL

Bundled libs:
- Some Django utils
  http://www.djangoproject.com/ BSD
- ReportLab
  http://www.reportlab.org/ BSD
- gdata-python-client
  http://code.google.com/p/gdata-python-client/ Apache
- BeautifulSoup
  http://www.crummy.com/software/BeautifulSoup/ BSD
- simplejson
  http://code.google.com/p/simplejson/ MIT
- feedparser
  http://www.feedparser.org/ MIT
- flickrapi
  http://stuvel.eu/projects/flickrapi Python

You'll also need a settings.py file module which defines things like api keys, usernames and passwords.
See settings.example.py

APIs:
- Google Static Maps
  http://code.google.com/apis/maps/documentation/staticmaps/
- Last.fm
  http://www.last.fm/api
- Twitter
  http://apiwiki.twitter.com/
- Newsgator
  http://www.newsgator.com/ngs/api/
  http://www.newsgator.com/ngs/TermsOfService.aspx
  http://nmp.newsgator.com/NGBuzz/Images/PoweredbyNG.gif
- Google Calendar
  http://code.google.com/apis/calendar/
- Flickr
  http://www.flickr.com/services/api/
  This product uses the Flickr API but is not endorsed or certified by Flickr.

RSS:
- BBC Weather
  http://news.bbc.co.uk/weather/hi/about/newsid_7788000/7788189.stm
- Met Office warnings and advisories
  http://www.metoffice.gov.uk/weather/uk/rss/help.html

Screen Scraping:
- TFL
  http://www.tfl.gov.uk/
Something went wrong with that request. Please try again.