kanpai-scraper
v0.4.0
Published
Declarative web-scraper.
Downloads
20
Readme
kanpai-scraper
A currently undocumented and untested library for modern, fast & declarative web-scraping.
This library uses parse5 and Typescript.
Installation
npm install kanpai-scraper
Getting started
import { executeKanpai } from 'kanpai-scraper';
executeKanpai(html, {
name: '.category-name',
products: ['.product-box', {
name: '.product-box--name',
price: ['$', '[data-price]', 'number'],
}]
});