JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 116
  • Score
    100M100P100Q102493F
  • License AGPL-3.0

Pitchfork.com scraper that gets best new music info Edit

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-bnm
const 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