showlist-austin-parser
v2.0.3
Published
Parse the HTML from showlistaustin.com for upcoming live-music shows in Austin, TX
Downloads
3
Readme
Showlist Austin Parser
Parse the HTML from showlistaustin.com for upcoming live-music shows in Austin, TX.
Powers the ShowGOAT.net site.
This was previously austin-showlist-scraper v1
Installation
$ npm install showlist-austin-parser
Usage
The library exports a single method that will take HTML and return an ES6
Iterable
of Show
objects.
const parse = require('showlist-austin-parser');
const fetch = require('node-fetch');
(async () => {
const resp = await fetch('http://showlistaustin.com');
const html = await resp.text();
const shows = parse(html);
for (const show of shows) {
console.log(show);
}
})();
Testing
$ npm test