Skip to content

Converting HTML(url / .html) to Markdown or Plain Text. 转换HTML(支持url或本地html文件)为Markdown格式 或 Plain Text纯文本。

Notifications You must be signed in to change notification settings

RedAtman/url2md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HtmlToMarkdown

  • Converting HTML(url / .html) to Markdown or Plain Text.
  • 转换HTML(支持url或本地html文件)为Markdown格式 或 Plain Text纯文本。

table2md.py(已废弃)手动实现table转Markdown。

Environment

python 3.6.0

Usage

  1. 安装依赖

     pip install -r requirements.txt
    
  2. 实例化并获取Markdown格式 或 Plain Text纯文本

     source = 'https://www.baidu.com/'
     obj = HtmlToMarkdown(source)
    
     print(obj.markdown())
     print(obj.text())
    

About

Converting HTML(url / .html) to Markdown or Plain Text. 转换HTML(支持url或本地html文件)为Markdown格式 或 Plain Text纯文本。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published