项目概述
fast python port of arc90’s readability tool, updated to match latest readability.js!
项目地址
https://github.com/buriy/python-readability
项目页面预览

关键指标
- Stars:2878
- 主要语言:Python
- License:Apache License 2.0
- 最近更新:2025-05-03T21:14:27Z
- 默认分支:master
本站高速下载(国内可用)
点击下载(本站镜像)
– SHA256:d7b55eb08fa9e6e9f7580ab32fba4d7a97f489e442a3eac1b2f35fae2cfb035f
安装部署要点(README 精选)
Installation
It’s easy using pip, just run:
$ pip install readability-lxml
As an alternative, you may also use conda to install, just run:
$ conda install -c conda-forge readability-lxml
Usage
>>> import requests
>>> from readability import Document
>>> response = requests.get('http://example.com')
>>> doc = Document(response.content)
>>> doc.title()
'Example Domain'
>>> doc.summary()
"""<html><body><div><body id="readabilityBody">\n<div>\n <h1>Example Domain</h1>\n
<p>This domain is established to be used for illustrative examples in documents. You may
use this\n domain in examples without prior coordination or asking for permission.</p>
\n <p><a href="http://www.iana.org/domains/example">More information...</a></p>\n</div>
\n</body>\n</div></body></html>"""
常用命令(从 README 提取)
$ pip install readability-lxml
$ conda install -c conda-forge readability-lxml
通用部署说明
- 下载源码并阅读 README
- 安装依赖(pip/npm/yarn 等)
- 配置环境变量(API Key、模型路径、数据库等)
- 启动服务并测试访问
- 上线建议:Nginx 反代 + HTTPS + 进程守护(systemd / pm2)
免责声明与版权说明
本文仅做开源项目整理与教程索引,源码版权归原作者所有,请遵循对应 License 合规使用。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END








暂无评论内容