Offlickr (version 0.9 - 2007-12-24)
index
/home/.shizzle/larve/www.larve.net/htdocs/people/hugo/2005/12/offlickr/v0.9/Offlickr.py

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
       
getopt
libxml2
logging
os
sys
threading
time
urllib

 
Classes
       
Offlickr
threading.Thread(threading._Verbose)
photoBackupThread

 
class Offlickr
     Methods defined here:
__init__(self, key, secret, uid, httplib=None, verbose=False)
Instantiates an Offlickr object
An API key is needed, as well as an API secret and a user id.
downloadURL(self, url, target, filename, verbose=False)
Saves a photo in a file
getGeotaggedPhotoList(self, dateLo, dateHi)
Returns a list of photo given a time frame
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
getPhotoLocation(self, pid)
Returns a string containing information about a photoset (in XML)
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, hash_level, 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
       
backupLocation(threads, offlickr, target, hash_level, dateLo, dateHi, doNotRedownload)
Back photo locations up for a particular time range
backupPhoto(i, total, id, title, target, hash_level, offlickr, doNotRedownload, getPhotos, overwritePhotos)
backupPhotos(threads, offlickr, target, hash_level, dateLo, dateHi, getPhotos, doNotRedownload, overwritePhotos)
Back photos up for a particular time range
backupPhotosets(offlickr, target, hash_level)
Back photosets up
fileWrite(directory, filename, string)
Write a string into a file
main()
Command-line interface
target_dir(target, hash_level, id)
usage()
Command line interface usage

 
Data
        __version__ = '0.9 - 2007-12-24'
flickrAPIKey = '1391fcd0a9780b247cd6a101272acf71'
flickrSecret = 'fd221d0336de3b6d'
maxTime = '9999999999'