import requests
response=requests.get("https://www.baidu.com/")
page_text=response.text
with open('./badu.html','w',encoding='utf-8') as fp:
fp.write(page_text)
print('爬取数据成功')
import requests
response=requests.get("https://www.baidu.com/")
page_text=response.text
with open('./badu.html','w',encoding='utf-8') as fp:
fp.write(page_text)
print('爬取数据成功')