BeatStars Downloader

Used for automatically downloading BeatStars content

Autore
OliverP
Installazioni giornaliere
1
Installazioni totali
1.056
Valutazione
0 0 1
Versione
1.0
Creato il
28/09/2021
Aggiornato il
28/09/2021
Dimensione
6,6 KB
Licenza
Non disponibile
Applica a

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")