1.0.1 • Published 11 years ago
austin-showlist-scraper v1.0.1
Austin Showlist Scraper
Scrape showlistaustin.com for upcoming live-music shows in Austin, TX.
Installation
$ npm install --save austin-showlist-scraperUsage
The method AustinShowlistScraper#upcoming() returns a Promise<Iterable<Show>>:
import AustinShowlistScraper from 'austin-showlist-scraper';
async function go()
{
let scraper = new AustinShowlistScraper();
let shows = await scraper.upcoming();
for (let show of shows) {
console.log(show);
}
}
go();The Show model can be found at src/models/Show.js.
Example of a Show model (eg, JSON.stringify(show)):
{
name: "Goodbye Blue Monday",
url: null,
date: "2015-03-24T02:00:00.000Z",
artists: [
{
artist: { name: "White Kyle" },
info: ""
}
],
info: "9pm",
venue: {
name: "Hotel Vegas",
address: "1500 E. 6th St.",
url: "http://www.hotelvegasaustin.com/"
}
}Testing
$ npm testLicense
MIT