~~~
#安装requests模块
pip install requests
~~~
~~~
#模拟get请求拿回信息
import requests
url = "https://www.sogou.com/web?query=林俊杰"
headerParams\={
'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_14\_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36'
}
resp = requests.get(url,headers\=headerParams) #处理一个小小的反爬
print(resp.text)
~~~