欧美网站建设公司排名,二维码生成器小程序,苏州学网站建设,网页设计素材书店照片文章首发见博客#xff1a;https://mwhls.top/4824.html。 无图/格式错误/后续更新请见首发页。 更多更新请到mwhls.top查看 欢迎留言提问或批评建议#xff0c;私信不回。 Github - 开源代码及Readme Blog - 工具介绍 摘要#xff1a;爬取我的WordPress博客#xff0c;并以… 文章首发见博客https://mwhls.top/4824.html。 无图/格式错误/后续更新请见首发页。 更多更新请到mwhls.top查看 欢迎留言提问或批评建议私信不回。 Github - 开源代码及Readme Blog - 工具介绍 摘要爬取我的WordPress博客并以markdown格式输出。 场景
想快速以带水印的markdown格式转发我的博客不想手动敲。
使用示例
开源地址asdTools/WordPressSpiderInMarkdown.py at main from asdTools.Classes.Spider.WordPressSpiderInMarkdown import WordPressSpiderInMarkdownfrom asdTools.Classes.Tool.Clipboard import Clipboardif __name__ __main__:Before: https://mwhls.top/4810.htmlAfter: https://blog.csdn.net/asd123pwj/article/details/132394313仅在我的博客测试正常mwhls.top爬取WordPress文章并转为markdown格式Only testing in my blog: mwhls.topCrawl post of WordPress, and output in markdownspider WordPressSpiderInMarkdown()spider.log(Input post url from mwhls.top:) url spider.input()spider.log(fParsing {url})title, result spider.get_post(url)spider.log(Title has copied)Clipboard.copy(title)spider.pause()spider.log(Content has copied)Clipboard.copy(result)spider.done()spider.pause()