1. 首页
  2. 数据库
  3. 其它
  4. 【原创】爬取Python3.9 中文版教程链接代码— 文科生的python自学之路(4)

【原创】爬取Python3.9 中文版教程链接代码— 文科生的python自学之路(4)

上传者: 2020-12-22 10:39:58上传 PDF文件 76.06KB 热度 12次
爬取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/tutorial/index.html’ html = requests.get(url) 3.规
下载地址
用户评论