特牛网址导航

【python 爬虫】博客文章转 Markdown(支持 LaTeX 公式)_python爬虫将文章保存为markdown-CSDN博客

网友收藏
文章浏览阅读425次,点赞3次,收藏2次。博客文章爬虫以某乎文章 https://zhuanlan.zhihu.com/p/112277874 为例子,爬取结果:程序如下:import osimport sysimport getoptimport requestsimport randomimport reimport html2textfrom bs4 import BeautifulSoupuseragents = [ 'Mozilla/5.0 (Windows NT 10.0; WOW64) App_python爬虫将文章保存为markdown