第一个简单爬虫:获取页面

复制代码
import requests
link = "http://www.santostang.com"
header = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36 SE 2.X MetaSr 1.0" }
response  = requests.get(link,headers = header)
print(response.text)
相关推荐
s_daqing1 小时前
一、爬虫-控制台介绍
爬虫
袁袁袁袁满3 小时前
Python爬虫下载PDF文件
爬虫·python·pdf·python爬虫下载pdf文件
深蓝电商API1 天前
Scrapy+Rredis实现分布式爬虫入门与优化
分布式·爬虫·scrapy
sugar椰子皮2 天前
【web补环境篇-0】document.all
爬虫
interception2 天前
js逆向之京东原型链补环境h5st
javascript·爬虫·网络爬虫
半路_出家ren2 天前
17.python爬虫基础,基于正则表达式的爬虫,基于BeautifulSoup的爬虫
网络·爬虫·python·网络协议·正则表达式·网络爬虫·beautifulsoup
我想吃烤肉肉3 天前
Playwright中page.locator和Selenium中find_element区别
爬虫·python·测试工具·自动化
lbb 小魔仙3 天前
【Python】零基础学 Python 爬虫:从原理到反爬,构建企业级爬虫系统
开发语言·爬虫·python
努力变大白3 天前
借助AI零基础快速学会Python爬取网页信息-以天眼查爬虫为例
人工智能·爬虫·python