@oliboy50/listal-exporter

0.1.1 • Public • Published

listal-exporter

Leverages jsonframe-cheerio to extract data from a list on listal.

Install

npm install --save @oliboy50/listal-exporter

Usage

const listalExporter = require('@oliboy50/listal-exporter');

// This "html" will be passed to "cheerio.load()" function (so it can be everything cheerio can load)
const html = htmlOfTheListalListToExtractDataFrom;

// "exportList" also accept a second parameter to pass "options" to "jsonframe-cheerio"'s scrape function (such as "{string: true}" to get data as a JSON string instead of a javascript object)
const listData = listalExporter.exportList(html);

Note

This package main purpose is to export the data you "own" (for instance, I don't want to use Listal anymore, so I decided to remake my own list elsewhere, without having to rewrite everything manually).

I mean that you should not use this package to extract data from every list you want on Listal... Be kind and do it only on the ones you own.

Readme

Keywords

none

Package Sidebar

Install

npm i @oliboy50/listal-exporter

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

17.2 kB

Total Files

9

Last publish

Collaborators

  • oliboy50