Package flickrapi :: Module shorturl
[hide private]
[frames] | no frames]

Module shorturl

source code

Helper functions for the short http://fli.kr/p/... URL notation.

Photo IDs can be converted to and from Base58 short IDs, and a short URL can be generated from a photo ID.

The implementation of the encoding and decoding functions is based on the posts by stevefaeembra and Kohichi on http://www.flickr.com/groups/api/discuss/72157616713786392/

Functions [hide private]
short id
encode(photo_id) source code
 
decode(short_id)
decode(short id) -> photo id
source code
 
url(photo_id)
url(photo id) -> short url
source code
Variables [hide private]
  ALPHABET = u'123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQ...
  ALPHALEN = 58
  SHORT_URL = u'http://flic.kr/p/%s'
  __package__ = None
Variables Details [hide private]

ALPHABET

Value:
u'123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'