python爬虫
·
import requests #导入requests模块
url='https://2b2t.org' #选择要爬的网站这是示例
res=requests.get(url) #发送请求
tml=res.text #转为html语言代码
print(html) #输出html代码
更多推荐
import requests #导入requests模块
url='https://2b2t.org' #选择要爬的网站这是示例
res=requests.get(url) #发送请求
tml=res.text #转为html语言代码
print(html) #输出html代码
更多推荐
所有评论(0)