所以我最近偶然发现这个伟大的库在Python中处理HTTP请求; 在这里找到http://docs.python-requests.org/en/latest/index.html.
我喜欢使用它,但我无法弄清楚如何在我的获取请求中添加标题.救命?
之前我使用httplib模块在请求中添加标头.现在我正在尝试与requests模块相同的事情.
这是我正在使用的python请求模块:http: //pypi.python.org/pypi/requests
如何添加标题,request.post并request.get说我必须foobar在标题中的每个请求中添加密钥.