2020
12-17
12-17
python爬虫利器之requests库的用法(超全面的爬取网页案例)
requests库利用pip安装:pipinstallrequests基本请求req=requests.get("https://www.baidu.com/")req=requests.post("https://www.baidu.com/")req=requests.put("https://www.baidu.com/")req=requests.delete("https://www.baidu.com/")req=requests.head("https://www.baidu.com/")req=requests.options(https://www.baidu.com/)1.get请求参数是字典,我们可以传递json类型的参数:importrequestsfromfake_usera...
继续阅读 >