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.
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