html-table-stream:在 Node 中读写 HTML 表格作为数据

时间:2024-06-25 20:39:02
【文件属性】:

文件名称:html-table-stream:在 Node 中读写 HTML 表格作为数据

文件大小:37KB

文件格式:ZIP

更新时间:2024-06-25 20:39:02

HTML

html-table-stream 在 Node.js 中读取和写入 HTML 表格作为数据。 使用安装它: npm install html-table-stream 现在您可以解析一些 HTML 表格,例如: var table = require ( 'html-table-stream' ) ; var request = require ( 'request' ) ; var ndjson = require ( 'ndjson' ) ; request ( 'http://www.epa.gov/envirofw/html/codes/state.html' ) . pipe ( table . parse ( ) ) . pipe ( ndjson . stringify ( ) ) . pipe ( process . stdout ) ;


【文件预览】:
html-table-stream-master
----.gitignore(44B)
----package.json(716B)
----bin()
--------html-table-stream(2KB)
----LICENSE(6KB)
----index.js(135B)
----README.md(541B)
----lib()
--------format.js(3KB)
--------matcher.js(407B)
--------parse.js(7KB)
----test()
--------spec.js(1KB)
--------instance()
--------scope-col()
--------select-rows()
--------google-html()
--------select-table()
--------basic()
--------no-tbody()

网友评论