@pingid/shears
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-alpha.4 • Public • Published

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: '...' },{...]

Package Sidebar

Install

npm i @pingid/shears

Weekly Downloads

10

Version

0.0.0-alpha.4

License

MIT

Unpacked Size

46.3 kB

Total Files

42

Last publish

Collaborators

  • pingid