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

复制代码
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)
相关推荐
深蓝电商API3 小时前
Playwright深入浅出:从入门到企业级项目实战
爬虫·playwright
小白学大数据4 小时前
爬虫性能天花板:asyncio赋能 Aiohttp,并发提速 10 倍
开发语言·爬虫·数据分析
yijianace8 小时前
Python爬虫实战:分页爬取 + 详情页采集 + CSV存储
前端·爬虫·python
yijianace10 小时前
Python爬虫实战:ThreadPoolExecutor多线程采集书籍信息与图片下载
开发语言·爬虫·python
在放️10 小时前
Python 爬虫 · bs4 模块基础
开发语言·爬虫·python
belong_my_offer10 小时前
Python 数据采集完全指南 —— 从零开始掌握网络爬虫与文件读取
开发语言·爬虫·python
深蓝电商API10 小时前
Playwright vs Puppeteer vs Selenium 2026终极对比
爬虫·selenium·puppeteer·playwright
遇事不決洛必達19 小时前
【Python基础】GIL 锁是什么及其对爬虫的影响
爬虫·python·线程·进程·gil锁
綝~19 小时前
爬虫数据采集工程师岗位面试题
爬虫·面试·请求
跨境数据猎手20 小时前
大数据在电商行业的应用
大数据·运维·爬虫