Solved! (dont forget to remove payload=
before json.loads()
)
参考transform-url-string-into-normal-string-in-python-20-to-space-etc
- python2
import urllib2
print urllib2.unquote("%CE%B1%CE%BB%20")
- python3
from urllib.parse import unquote
print(unquote("%CE%B1%CE%BB%20"))
b"abcde".decode("utf-8")
first commit second commit
- single comment.py works
finished!
参考requests 如何模拟提交 multipart/form-data 的表单
url = 'http://example.com/post'
files = {'file': open('gitradio.png', 'rb')} # 文件
datat = {'name':'szcfweiya'} # 其他表单
r = requests.post(url, files=files, data=data)
- 加上参数
--ssl-protocol=any
,参考PhantomJS failing to open HTTPS site
如
phantomjs --ssl-protocol=any screenshot.js https://esl.hohoweiya.xyz/notes/ipynb/list/index.html tes.png
- 设置背景为白色,参考Tips and Tricks
page.evaluate(function() {
document.body.bgColor = 'white';
});
done!
应用暂时未通过审核,调用短链转换api时报错
{'error': 'applications over the unaudited use restrictions!', 'error_code': 21321, 'request': '/2/short_url/shorten.json'}
在使用新浪API生成短连接找到可用的app_key: '2815391962'
to gitradio.hohoweiya.xyz