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)
第一个简单爬虫:获取页面
FrankHuang8882024-04-25 11:53
相关推荐
s_daqing1 小时前
一、爬虫-控制台介绍袁袁袁袁满3 小时前
Python爬虫下载PDF文件深蓝电商API1 天前
Scrapy+Rredis实现分布式爬虫入门与优化sugar椰子皮2 天前
【web补环境篇-0】document.allinterception2 天前
js逆向之京东原型链补环境h5st半路_出家ren2 天前
17.python爬虫基础,基于正则表达式的爬虫,基于BeautifulSoup的爬虫我想吃烤肉肉3 天前
Playwright中page.locator和Selenium中find_element区别lbb 小魔仙3 天前
【Python】零基础学 Python 爬虫:从原理到反爬,构建企业级爬虫系统努力变大白3 天前
借助AI零基础快速学会Python爬取网页信息-以天眼查爬虫为例