1.0.3 • Published 5 years ago

scrape_beatport_playlist v1.0.3

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

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"
    }
]