| import requests |
| |
| headers = { |
| 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7', |
| 'Accept-Language': 'zh-CN,zh;q=0.9', |
| 'Cache-Control': 'no-cache', |
| 'Pragma': 'no-cache', |
| 'Proxy-Connection': 'keep-alive', |
| 'Referer': 'http://www.h528.com/', |
| 'Upgrade-Insecure-Requests': '1', |
| 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36', |
| } |
| |
| response = requests.get('http://www.h528.com/post/25126.html', headers=headers, verify=False) |
| html=etree.HTML(response.text) |
| href=html.xpath('//div[@class="entry"]/p/text()') |
| print(''.join(href)) |
| |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
2021-04-21 Qt开发经验小技巧131-140
2021-04-21 Qt 在线程中使用EXCLE办法
2021-04-21 Qt 在线程中导出EXCLE报 CoCreateInstance failure (尚未调用 CoInitialize) 解决办法
2021-04-21 Qt 操作Excel错误:QAxBase: Error calling IDispatch member WorkSheets: Unknown error
2021-04-21 Qt中自定义qDebug打印信息的宏(文件名,行数,时间等等)
2021-04-21 QT应用编程:基于VLC开发音视频播放器(回调方式)
2021-04-21 QT应用编程:基于VLC开发音视频播放器(句柄方式)