Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jwheare/digest

Python script to generate a daily digest PDF in pocketmod booklet form to print out and enjoy
https://github.com/jwheare/digest

Last synced: 8 days ago
JSON representation

Python script to generate a daily digest PDF in pocketmod booklet form to print out and enjoy

Awesome Lists containing this project

README

        

UPDATE November 2011: This is currently not building. Oh well.

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:
- PIL (compiled with jpeg support)
http://www.pythonware.com/products/pil/
http://www.ijg.org/
- 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/