© 1999-2048 dssz.net 粤ICP备11031372号
[其它] 【原创】爬取Python3.9 中文版教程链接代码—-文科生的python自学之路(4)
说明:爬取Python3.9 中文版教程链接代码 目标地址:https://docs.python.org/zh-cn/3.9/tutorial/index.html 爬取内容:中文版教程的标题和链接 起因 很多初学者小白都在想,直接把官方的链接下载下来,随时可以转换pdf、chm等等,也方便编辑使用。 1.导入库 import requests from pyquery import PyQuery as pq 2.请求 url = ‘http://docs.python.org/zh-cn/3.9<weixin_38592758> 上传 | 大小:76kb