Public
Authored by Aleksandar Todorović

Adds songs from a DJ set into Last.fm

This script scrapes 1001tracklists to extracts a tracklist of a DJ set. It then sends over the data to Last.fm using their API to import the identified tracks into Last.fm.

Prerequisites:

pip install pylast requests fake-useragent beautifulsoup4

First generate a Last.fm API key and fill in lines 7-10 with API and account details. Afterwards, just call the script with:

python scrape.py https://www.1001tracklists.com/tracklist/td181gt/rl-grime-jawns-rossy-sable-valley-stream001-united-states-2020-05-30.html
Edited
script.py 1.03 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment