-
Python request庫查看全部
-
response.info() 可以打開網頁的 headers查看全部
-
HTTP基本原理 發送請求 接收響應 HTTP進階話題:Cookie,Session查看全部
-
使用代理,訪問國外的網站查看全部
-
事件鉤子,回調函數hooks查看全部
-
api查看全部
-
利用requests底層的Request和Session發送查看全部
-
headers = {"User-Agent":"pypa"} resp = requests.post(url,timeout=10,data={"hello":"world","yo":"check"},headers=headers)查看全部
-
try: resp = requests.post(url,timeout=0.1,data={"hello":"world","yo":"check"}) except exceptions.Timeout: print("超時") else: print(resp.text)查看全部
-
超時的請求查看全部
-
333查看全部
-
222查看全部
-
111查看全部
-
請求方法查看全部
-
url = "http://httpbin.org/get" param = {"hello":"world","now":"123"} resp = requests.get(url,params=param) # 獲取get請求 print(resp.headers) # 獲取請求頭 print(resp.status_code) # 獲取狀態碼 print(resp.json()) # 以json格式返回頁面內容 print(resp.text) # 獲取請求頁面內容查看全部
舉報
0/150
提交
取消