Home > photo-rss-dir

photo-rss-dir

Photo-rss-dir is a project mainly written in Python, it's free.

Python CGI script that reads all images of a directory and serves them ordered by age in a media rss feed.

photo-rss-dir

photo-rss-dir provides a simple cgi script that generates a multimedia rss feed out of a folder of images on a webserver. It also supports sourcing pictures from facebook that are tagged with the person whose OAuth access token is provided in settings.FACEBOOK_OAUTH_TOKEN.

Testing

To test the cgi script change the location of PHOTO_DIR in the settings.py file to point to the photos folder in the photo-rss-dir. Then run:

python -m CGIHTTPServer

and in a different shell:

curl http://localhost:8000/cgi-bin/photorssdir.py

The result should look like this:

<?xml version="1.0" encoding="UTF-8"?><rss xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>title</title><link>http://localhost/</link><description>description</description><item><title>gpl.jpg</title><media:content type="image/jpeg" url="http://localhost/photos/gpl.jpg" /></item></channel></rss>
Previous:ooici-pres