Skip to main content

BeatStarsDownloader

Python script for downloading all tracks from a beatstars artist track page. It functions as a BeatStars downloader to mp3.

Fork from pyscrapetrain.

Setup

There are two ways to run this tool, either using the pip package or manually installing the tool.

Pip package method is preferred, only resort to using the manual install if you're having issues.

Pip Package

Install the pip package, using this command:

pip install beatstarsdownloader

Manual install

First clone this repo, then install dependencies using Poetry:

poetry install

Then run the tool using this command:

poetry run python main.py

For the rest of the readme, make sure to swap out the beatstarsdownloader command for poetry run python main.py.

How to use:

Terminal interface

Feel free to use the built in terminal interface to download tracks from a single URL / artist name:

beatstarsdownloader

image

CLI interface

When inputting a url make sure to use the artist's /tracks page.

For example: https://www.beatstars.com/lovbug/tracks


To download all the tracks from a profile run the following command:

beatstarsdownloader <beatstars tracks url or artist name>

For example:

beatstarsdownloader https://www.beatstars.com/lovbug/tracks

OR

beatstarsdownloader lovbug

Tracks are downloaded to a beatstarsDownloader/artist folder in your home directory.

Changing folder

To change download folder use the -d flag:

beatstarsdownloader <beatstars-url> -d /path/to/folder

Which will create a beatstarsDownloader/artist folder under the path specified. For example:

beatstarsdownloader https://www.beatstars.com/lovbug/tracks -d /Users/user/Documents

Will create the following folder /Users/user/Documents/beatstarsDownloader/lovbug.

Adding custom album

You might want to listen to the playlist of tracks you just downloaded so the script supports a custom album ID3 tag to allow you to sort in your media library.

Use the -a tag to assign a custom album name.

For example:

beatstarsdownloader https://www.beatstars.com/lovbug/tracks -a "bs lovbug"

Which gives: image

Supplying a list of URLs

If you want to scrape multiple beatstars pages then you can point a .txt file with each url you want to scrape on a new line.

For this use-case simply specify the filepath instead of a url.

For example:

beatstarsdownloader example_url_list.txt

Example list of urls: image

Debug Mode

To enable debug logging for troubleshooting download issues, set the BEATSTARS_DEBUG environment variable:

export BEATSTARS_DEBUG=1
beatstarsdownloader <beatstars-url>

Or run it inline:

BEATSTARS_DEBUG=1 beatstarsdownloader <beatstars-url>

Debug mode will show detailed error information when tracks fail to download, including:

  • Track names and numbers that failed
  • Specific error messages and types
  • URLs that caused issues

Accepted values for BEATSTARS_DEBUG: 1, true, yes, on (case insensitive)

Disclaimer

THIS TOOL IS STRICTLY FOR EDUCATIONAL PURPOSES ONLY.

THE AUTHOR TAKES NO RESPONSIBILITY FOR THE USAGE OF THIS TOOL.

Disclaimer: Use of BeatstarsDownloader (this tool)

This tool, BeatstarsDownloader, is provided to you as a convenience of downloading web assets. Before using this tool, it is important to understand and acknowledge the following:

Copyrighted Material: The Author (referring to the author of this code) does not endorse or encourage the unauthorized downloading or distribution of copyrighted music. This tool is intended for use with music that you have the legal right to download and distribute.

User Responsibility: The user acknowledges and agrees that they are solely responsible for ensuring that their use of BeatstarsDownloader complies with applicable copyright laws and regulations. Users must obtain the necessary permissions or licenses before downloading and using copyrighted material.

Legal Compliance: The Author is not responsible for any legal consequences that may arise from the use of this tool for downloading copyrighted music without the proper authorization. Users should be aware of and comply with the copyright laws in their jurisdiction.

No Warranty: The Author provides this tool "as is" without any warranty of any kind, expressed or implied. The Author makes no representations or warranties regarding the accuracy, reliability, or completeness of the tool.

Updates and Changes: The Author reserves the right to make changes or updates to this tool at any time without notice. It is the user's responsibility to ensure they are using the latest version of the tool.

By using BeatstarsDownloader, you agree to the terms and conditions outlined in this disclaimer. If you do not agree with these terms, you should not use the tool.

Metadata

Release files for beatstarsdownloader 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beatstarsdownloader 0.2.1
File Size Uploaded Provenance Actions
beatstarsdownloader-0.2.1.tar.gz 13.5 kB Without provenance Details for beatstarsdownloader-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for beatstarsdownloader 0.2.1
File Interpreter ABI Platform Actions
beatstarsdownloader-0.2.1-py3-none-any.whl Python 3 none any Details for beatstarsdownloader-0.2.1-py3-none-any.whl

Total release size: 27.4 kB

Release files / beatstarsdownloader-0.2.1.tar.gz

Download URL beatstarsdownloader-0.2.1.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fcb8089c41cf4a43ba377e026e1a25af5d0dedb7fb655fc4be6ba77fc7ee3dc7
BLAKE2b-256 checksum
How to use checksums
5cc3a244ea022b40c3a857e79c305defa107d5280d9f81167fcaf9e838c46104
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0

Release files / beatstarsdownloader-0.2.1-py3-none-any.whl

Download URL beatstarsdownloader-0.2.1-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f876085633e18fe041e36b6dd866ed11aeb2a31fa247cc49d75a525a1ab100a
BLAKE2b-256 checksum
How to use checksums
ea1c33c98d04e0543a9308f42f38e2fef136eee19ef574f00ba30f2d1d79ea43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0

Security for beatstarsdownloader 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page