npm.io
0.0.0 • Published 3 years ago

scia

Licence
—
Version
0.0.0
Deps
0
Size
9 kB
Vulns
0
Weekly
0
Stars
2

scia

Scia

Scia is an easy to use web scraper, that generates a structured JSON of your choice from any HTML. Works with Node.js, Deno and Bun.

Getting started

Node.js

npm install scia
import { scrape, select } from 'scia';

const json = await scrape('https://example.com',  { title: select('h1') });
Deno
import { scrape, select } from 'https://deno.land/x/scia/mod.ts';

const json = await scrape('https://example.com',  { title: select('h1') });
Bun
bun install scia
import { scrape, select } from 'scia';

const json = await scrape('https://example.com',  { title: select('h1') });