Skip to main content

extractor blog

Project description


文章提取

1. 提取文章标题
2. 提取文章内容
3. 转换成Markdown格式
4. 摘要提取(TODO)
5. 关键词提取(TODO)


```
示例:

import extractorblog

ua_headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0',
}
blog = extractorblog.get(url='https://statmodeling.stat.columbia.edu/2018/08/01/thanks-nvidia/', headers=ua_headers)

# 获取网页内容
print(blog.getHtml)

# 获取网页标题
print(blog.getTitle)

# 获取网页主体html内容
print(blog.getBodyHtml)

# 获取网页主体markdown内容
print(blog.getMarkdown)
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

extractorblog-0.0.6.1.tar.gz (12.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page