BeatStars Downloader

Used for automatically downloading BeatStars content

Author
OliverP
Daily installs
2
Total installs
1,056
Ratings
0 0 1
Version
1.0
Created
2021-09-28
Updated
2021-09-28
Size
6.6 KB
License
N/A
Applies to

BeatStars Downloader

This script is used for downloading tracks from BeatStars.

How to use

  1. Go into the tracks page of the user you want to download the tracks from
  2. Click on "Load tracks" to load all available tracks of the user (the script is scrolling down automatically to do that)
  3. Click on Download and wait until it completes
  4. A modal will pop-up and allow you to copy the track names and the URLs (in a 2 line per track txt format) 5, Copy it into your downloader of choice or into the provided Python script (if using the Python script, place the copied track names and URLs into a file named tracks.txt into the same folder as the script, use Python 3 for running it)

The Python script for downloads:

import urllib.request
import os
import os.path

step = 2
if not os.path.exists('Downloads'):
            os.makedirs('Downloads')
with open("tracks.txt") as f:
    lines = f.readlines()
    for lineno, line in enumerate(lines):
        if lineno % step == 1:
            fname = "Downloads/"+lines[lineno-1].rstrip()+".mp3"
            if not (os.path.isfile(fname)):
                urllib.request.urlretrieve(line, fname)
                print("Downloading "+fname)
            else:
                print(fname+" already downloaded, skipping")