0.1.1 • Published 6 years ago

@oliboy50/listal-exporter v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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.