Python短网址库:Tiny4py
jopen
12年前
Tiny4py 是一个 Python 封装了短网址功能的开发包,支持的服务包括:goo.gl, bit.ly and tinyurl.
TINY4PY FEATURES
- Bit.ly shortener
- Goo.gl shortener
- TinyUrl Shortener
- QrCode image generated with Bit.ly
- QrCode image generated with Goo.gl
- Bit.ly statistics
示例代码:
myqrcodefile=bitly_shortener.getQRCode("http://bit.ly/eU1ktT") localFile = open("myqrcode_bitly.png", 'wb') localFile.write(myqrcodefile) localFile.close()