我要爬爬蟲(4)-初識requests模塊

與urllib模塊不一樣,requests模塊發送請求能夠用明肯定義的函數實現,如: requests.get() requests.post()php 不須要urlopen()和handler(),更加方便發送請求。 import requests,json data={ 'name':'Tom', 'age':1 } re=requests.get('http://httpbin.org/ge
相關文章
相關標籤/搜索