@pingid/shears
v0.0.0-alpha.4
Published
Functional web scraping in typescript
Downloads
2
Maintainers
Readme
Shears
A Declarative web scraping library that aims to provide an extendable set of tools for building complex typesafe queries and web crawlers.
import * as sh from 'shears'
const article_list = sh.query(
'#content',
['ul > li'],
sh.query({
title: 'h1',
image: 'image@src'
})
)
await sh.run('<html><...', article_list)
// [{ title: '...' content: '...' },{...]