Package Exports
- pitchfork-bnm
- pitchfork-bnm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pitchfork-bnm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pitchfork-bnm
Pitchfork.com scraper that gets best new music info
Usage
The module exposes 3 methods, each of which scrapes data from the sections found here: https://pitchfork.com/best/
$ npm install --save pitchfork-bnmconst p4k = require('pitchfork-bnm');
p4k.getBestNewAlbums()
.then((albums) => {
console.log(albums);
});const p4k = require('pitchfork-bnm');
p4k.getBestNewTracks()
.then((tracks) => {
console.log(tracks);
});const p4k = require('pitchfork-bnm');
p4k.getBestNewReissues()
.then((reissues) => {
console.log(reissues);
});Testing
$ npm test