################################################################
## A simple script to batch-download photo albums from picasa
################################################################

# Requires installing feedparser into your python
import feedparser

# Standard library imports
import os
from urllib import urlopen

#######################################################
## Config
# URL of (picasa album) RSS feed
URL = ""
# Folder to which you want to download the photos to
FOLDER = "D:\\photo_dl\\"
#######################################################

os.chdir(FOLDER)

feed = feedparser.parse(URL)

for each in feed.entries:
    url = each.enclosures[0]['href']
    u = urlopen(url)
    photo = u.read()
    u.close()
    photo_id = url.split('/')[-1]
    f = file(FOLDER+photo_id, 'wb')
    f.write(photo)
    f.close()