CLI for downloading BeatStars tracks
Project description
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 manuall 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 the requirements.txt
file by using the following command:
pip install -r requirements.txt
Then run the tool using this command:
python main.py
For the rest of the readme, make sure to swap out the beatstarsdownloader
command for 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
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:
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:
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file beatstarsdownloader-0.1.0.tar.gz
.
File metadata
- Download URL: beatstarsdownloader-0.1.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76be169c28c8179f728ed27c3dc81c4f762159e64ea66d88c00e2b12aa14d4c2 |
|
MD5 | 25003abdb5bf5af78ffdf22373750151 |
|
BLAKE2b-256 | dd81c90e350104a2894afa8b7a8a8c510b15dd6ae9315db61bc5dd3ae2da588e |
File details
Details for the file beatstarsdownloader-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: beatstarsdownloader-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61a080723e7ca859cdb319e6e6283ee3b180e3b5c052b5eb8573f195a100f7bc |
|
MD5 | 538de815eaeb710e820fb62a2535e4a2 |
|
BLAKE2b-256 | 33c63e58c5d63ba9dcf76b35c1d373dfa8a21c7b7b1e52a93cbcd31b1f19c810 |