scrape_beatport_playlist

1.0.3 • Public • Published

scrape_beatport_playlist

Scrapes tracks, artists, and genres from a beatport playlist URL

NPM

scrape_beatport_playlist

Installation

npm install scrape_beatport_playlist

Usage:

const getTracks = require(beatport-playlist-scrape)

getTracks(url)
    .then(data => {
        console.log(data);
    })
    .catch(error => {
        console.log(error);
    })

Example Output:

[
    {
        "id": "12630900a",
        "title": "Sahara",
        "artist": "MD Project",
        "genre": "Deep House"
    },
    {
        "id": "12630901",
        "title": "Biosphere",
        "artist": "Widow Tongue",
        "genre": "Deep House"
    },
    {
        "id": "12630991",
        "title": "Loop Think",
        "artist": "Level Of Encore",
        "genre": "Deep House"
    }
]

Package Sidebar

Install

npm i scrape_beatport_playlist

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

3.78 kB

Total Files

6

Last publish

Collaborators

  • christianblandford