python如何获取整个页面?
1、Python中获取整个页面的代码:
import requests res = requests.get('https://blog.csdn.net/yirexiao/article/details/79092355') res.encoding = 'utf-8' print(res.text)
2、运行结果
来源:PY学习网:原文地址:https://www.py.cn/article.html
1、Python中获取整个页面的代码:
import requests res = requests.get('https://blog.csdn.net/yirexiao/article/details/79092355') res.encoding = 'utf-8' print(res.text)
2、运行结果
来源:PY学习网:原文地址:https://www.py.cn/article.html