Offlickr (version 0.3 - 2006-01-03)

Offlickr
# Hugo Haas -- mailto:hugo@larve.net -- http://larve.net/people/hugo/
# Homepage: http://larve.net/people/hugo/2005/12/offlickr/
# License: GPLv2

 
Classes
       
Offlickr

 
class Offlickr
     Methods defined here:
__init__(self, key, secret, uid, browser='lynx')
Instantiates an Offlickr object
An API key is needed, as well as an API secret and a user id.
A browser can be specified to be used for authorizing the program
to access the user account.
downloadURL(self, url, filename, verbose=False)
Saves a photo in a file
getOriginalPhoto(self, pid)
Returns a URL which is the original photo, if it exists
getPhotoList(self, dateLo, dateHi)
Returns a list of photo given a time frame
getPhotoMetadata(self, pid)
Returns a string containing the photo metadata (in XML)
getPhotoSizes(self, pid)
Returns a string with is a list of available sizes for a photo
getPhotosetInfo(self, pid, method)
Returns a string containing information about a photoset (in XML)
getPhotosetList(self)
Returns a list of photosets for a user

 
Functions
       
backupPhotos(offlickr, target, dateLo, dateHi, getPhotos)
Back photos up for a particular time range
backupPhotosets(offlickr, target)
Back photosets up
fileWrite(filename, string)
Write a string into a file
main()
Command-line interface
usage()
Command line interface usage

 
Data
        __version__ = '0.3 - 2006-01-03'
flickrAPIKey = '1391fcd0a9780b247cd6a101272acf71'
flickrSecret = 'fd221d0336de3b6d'
maxTime = '9999999999'