把网页保存成markdowm的方法

1.vnote ,typeroa
复制网页的内容到vnote,右键选择“解析为markdowm并黏贴”,就可以保存下来了,很完美
2.chrome插件
为了更方便的提取关键的文件内容,最好先用文本简化插件提取出文件的内容出来方便阅读,比如每个浏览器自带的阅读模式,有些简化阅读的插件,比如tampermonkey 脚本 简阅,然后复制简阅提取出来的净化的文章内容。
    • Web cliper 
https://clipper.website
既可以直接把网页保存到语雀,onenote,有道等平台,又可以保存成markdown文件
    • Copycat
    选择要复制的内容,然后右键选择->markdowm就可以把复制的文本直接转换成markdowm了
脚本

3. 其他方法(来自 https://www.v2ex.com/t/632022)
有个 html 转 markdown 的库 [html2text]( https://github.com/aaronsw/html2text)
博客园的文章我爬过, csdn 没试过, 你可以参考我的代码
[https://github.com/aaronsw/html2text]( https://github.com/lin-zone/scrapy-crawler/blob/master/crawler/cnblogs.py)

 

    原文作者:果果爱天使
    原文地址: https://blog.csdn.net/guoxw1990/article/details/112762243
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞