Pure Python score downloader for Musescore.
Project description
musdl
NOTE:
The author of musdl does NOT condone piracy in any way, and is not responsible for anything that happens as a result of piracy arising from the use of musdl.
musdl (Musescore Downloader) is a Python script that I wrote to make it easier to download scores from Musescore. It is meant to be used as a command-line tool, but can also be imported and used as a module:
from musdl import Score
my_score = Score(...) # the Musescore url goes here
data = my_score.download("mp3") # download as mp3, returns as bytes
Why?
See the original Javascript version for more infomation.
takedown request something something
Take a look at this issue in the (same) Javascript downloader repo.
Requirements
requests
- Downloader.beautifulsoup4
- Powerful HTML parser.reportlab
- Make PDFs.svglib
- Convert SVGs into Reportlab drawings.
Hacking
All my python projects now use flit to build and publish.
So you need to python3 -m pip install flit
first.
git clone https://github.com/onyxware/musdl
cd musdl
flit build
Install
(python3 -m) pip install musdl
License
MIT.
Changelog
2.2.0
Fixed PDF support for Windows. Now musdl uses svglib
as the backend for adding SVGs to PDFs.
2.1.1-2.1.2
Added PDF support.
2.0.0
Added -O
option to use the score's title as the output filename (y'know, like curl -O
).
Refactored code to be object-oriented, in the form of the Score
class. This should make adding new features easier.
(Plus, you can use musdl
more programmatically!)
1.1.2
Version bump, use Flit to build instead of setup.py
.
Updated README too.
1.1.0
Added MusicXML download option, thanks to JPFrancoia for the update!
1.0.0
Initial version.
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.