Offlickr (version 0.6 - 2007-05-20)

Offlickr
# Hugo Haas -- mailto:hugo@larve.net -- http://larve.net/people/hugo/
# Homepage: http://larve.net/people/hugo/2005/12/offlickr/
# License: GPLv2
#
# wget patch by Daniel Drucker <dmd@3e.org>

 
Modules

 
Classes
       
Offlickr
threading.Thread(threading._Verbose)
photoBackupThread

 
class Offlickr
     Methods defined here:
__init__(self, key, secret, uid, httplib=None, browser='lynx', verbose=False)
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, target, filename, verbose=False)
Saves a photo in a file
getOriginalPhoto(self, pid)
Returns a URL which is the original photo, if it exists
getPhotoComments(self, pid)
Returns an XML string containing the photo comments
getPhotoList(self, dateLo, dateHi)
Returns a list of photo given a time frame
getPhotoMetadata(self, pid)
Returns an array containing containing the photo metadata (as a string), and the format of the photo
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

 
class photoBackupThread(threading.Thread)
    
Method resolution order:
photoBackupThread
threading.Thread
threading._Verbose
__builtin__.object

Methods defined here:
__init__(self, sem, i, total, id, title, offlickr, target, getPhotos, doNotRedownload, overwritePhotos)
run(self)

Methods inherited from threading.Thread:
__repr__(self)
getName(self)
isAlive(self)
isDaemon(self)
join(self, timeout=None)
setDaemon(self, daemonic)
setName(self, name)
start(self)

Data and other attributes inherited from threading._Verbose:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of '_Verbose' objects>
list of weak references to the object (if defined)

 
Functions
       
backupPhoto(i, total, id, title, target, offlickr, doNotRedownload, getPhotos, overwritePhotos)
backupPhotos(threads, offlickr, target, dateLo, dateHi, getPhotos, doNotRedownload, overwritePhotos)
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.6 - 2007-05-20'
flickrAPIKey = '1391fcd0a9780b247cd6a101272acf71'
flickrSecret = 'fd221d0336de3b6d'
maxTime = '9999999999'