https://github.com/nukeop/pitchfork-bnm
Pitchfork.com scraper that gets best new music info
https://github.com/nukeop/pitchfork-bnm
Last synced: over 1 year ago
JSON representation
Pitchfork.com scraper that gets best new music info
- Host: GitHub
- URL: https://github.com/nukeop/pitchfork-bnm
- Owner: nukeop
- License: agpl-3.0
- Created: 2018-01-08T09:35:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-06T23:20:51.000Z (over 4 years ago)
- Last Synced: 2025-03-18T11:57:41.886Z (over 1 year ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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/
```bash
$ npm install --save pitchfork-bnm
```
```javascript
const p4k = require('pitchfork-bnm');
p4k.getBestNewAlbums()
.then((albums) => {
console.log(albums);
});
```
```javascript
const p4k = require('pitchfork-bnm');
p4k.getBestNewTracks()
.then((tracks) => {
console.log(tracks);
});
```
```javascript
const p4k = require('pitchfork-bnm');
p4k.getBestNewReissues()
.then((reissues) => {
console.log(reissues);
});
```
# Testing
```bash
$ npm test
```