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/
short id
|
|
|
decode(short_id)
decode(short id) -> photo id |
source code
|
|
|
|
|
ALPHABET = u' 123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQ ...
|
|
ALPHALEN = 58
|
|
SHORT_URL = u' http://flic.kr/p/%s '
|
|
__package__ = None
|
ALPHABET
- Value:
u' 123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ '
|
|