Python下载微信公众号文章和图片保存至本地
思路获取到微信公众号的文章之后,使用 BeautifulSoup 和正则表达式 解析出文章标题和包含正文的html.之后使用正则表达式获取图片下载链接,下载成功后将微信的链接替换成本地图片链接。运行效果代码import requestsfrom re import findallfrom bs4 import BeautifulSoupimport timeimport osweixin_title=""weixin_time=""#获取微信公众号内容,保存标题和时间def
原创
2022-03-07 16:25:05 ·
2515 阅读 ·
1 评论