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>.
时间: 2024-10-07 18:59:37