【爬蟲】模擬百度搜索,爬取搜索界面源代碼

import urllib.request import urllib.parse get_data={'wd':'中國'} get_data_encode=urllib.parse.urlencode(get_data) request_url='http://www.baidu.com/s' request_url+='?'+get_data_encode print(request_url)
相關文章
相關標籤/搜索