URL拼接参数
import requests
payload = {'key1': 'value1', 'key2': 'value2'}
r2 = requests.get("http://httpbin.org/get", params=payload)
print(r2.url) //http://httpbin.org/get?key1=value1&key2=value2
URL响应内容
import requests
r = requests.get('https://api.github.com/events')
# print(r.text)
# print(r.content)
print(r.json())
https://2.python-requests.org//zh_CN/latest/user/quickstart.html