没有合适的资源?快使用搜索试试~ 我知道了~
go-readability:Go程序包可清理HTML页面以提高可读性
共230个文件
html:215个
go:8个
yml:1个
需积分: 10 0 下载量 102 浏览量
2021-05-11
10:59:27
上传
评论
收藏 4.14MB ZIP 举报
温馨提示
易读性 Go-Readability是一个Go程序包,可从HTML页面中找到主要的可读内容和元数据。 它的工作原理是消除按钮,广告,背景图片,脚本等混乱的情况。 该软件包基于并逐行编写,以确保其外观和工作方式尽可能相似。 这样,希望所有可以被Readability.js解析的网页也可以通过go-readability进行解析。 地位 这个包足够稳定,可以使用,并且在提交之前可以一直使用Readability.js进行 。 安装 要安装此软件包,只需运行go get : go get -u -v github.com/go-shiori/go-readability 例子 要从URL获取可读内容,可以使用readability.FromURL 。 它将从指定的url获取网页,检查其是否可读,然后解析响应以找到可读的内容: package main import ( "fmt" "
资源推荐
资源详情
资源评论
收起资源包目录
go-readability:Go程序包可清理HTML页面以提高可读性 (230个子文件)
.gitattributes 30B
.gitignore 13B
parser.go 75KB
parser_test.go 4KB
main.go 4KB
generate-test.go 4KB
utils.go 2KB
readability.go 2KB
utils_test.go 2KB
main.go 775B
source.html 1.56MB
source.html 1.23MB
source.html 1.15MB
source.html 865KB
source.html 835KB
source.html 835KB
source.html 819KB
source.html 754KB
source.html 622KB
source.html 551KB
expected.html 514KB
source.html 478KB
source.html 467KB
source.html 459KB
source.html 402KB
source.html 369KB
source.html 360KB
source.html 342KB
source.html 328KB
source.html 313KB
source.html 302KB
source.html 293KB
source.html 261KB
source.html 261KB
source.html 258KB
source.html 253KB
source.html 243KB
source.html 238KB
source.html 218KB
source.html 208KB
source.html 207KB
source.html 207KB
source.html 205KB
source.html 200KB
source.html 178KB
source.html 178KB
source.html 177KB
source.html 176KB
source.html 176KB
source.html 170KB
source.html 151KB
expected.html 150KB
source.html 147KB
source.html 143KB
source.html 140KB
source.html 140KB
source.html 139KB
source.html 138KB
source.html 138KB
source.html 134KB
source.html 134KB
source.html 129KB
source.html 125KB
source.html 125KB
source.html 123KB
source.html 117KB
expected.html 117KB
source.html 105KB
source.html 100KB
expected.html 99KB
source.html 93KB
source.html 90KB
source.html 85KB
source.html 85KB
expected.html 80KB
expected.html 73KB
source.html 66KB
expected.html 65KB
source.html 64KB
source.html 63KB
source.html 63KB
source.html 63KB
source.html 62KB
source.html 61KB
source.html 61KB
source.html 58KB
expected.html 58KB
expected.html 57KB
expected.html 52KB
expected.html 51KB
expected.html 48KB
source.html 47KB
expected.html 45KB
expected.html 45KB
expected.html 44KB
expected.html 38KB
expected.html 37KB
expected.html 34KB
expected.html 33KB
source.html 32KB
共 230 条
- 1
- 2
- 3
资源评论
锦宣
- 粉丝: 18
- 资源: 4564
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功