python 爬蟲(三)模擬post請求,爬取數據

import urllib.request import urllib.parse url =r"http://www.baidu.com" #將要發送的數據合成一個字典 #字典的鍵值在網頁裏找 data = { "username":"1507", "password":"230063" } #對要發送的數據進行打包 postData = urllib.parse.urlenc
相關文章
相關標籤/搜索