标签:
import requests import json import hashlib url = ‘http://a.qbao.com/short‘ param={"longUrl":r"http://m.qianbao666.com/api/v30/share4Client/share?type=3&prizeMoney=1,5765"} r = requests.post(url,data=param) print r.text {"ok":true,"longUrl":"http://m.qianbao666.com/api/v30/share4Client/share?type=3\u0026prizeMoney=1,5765","shortUrl":"http://a.qbao.com/Pg"} http get http://a.qbao.com/Pg <a href="http://m.qianbao666.com/api/v30/share4Client/share?type=3\u0026prizeMoney=1,5765">Moved Permanently</a>.
标签:
原文地址:http://www.cnblogs.com/huangjianan/p/4180686.html