Skip to main content

flowkey_dl

A python app to download sheet music from flowkey and save it as pdf.

installation

This is a python3 app, that can be installed with pip:

python3 -m pip install flowkey_dl

To get the latest dev version from git, clone the repository and install from the folder.

git clone https://github.com/MatthiasLienhard/flowkey_dl.git
cd flowkey_dl
python3 -m pip install .

The gui of the app depends on tkinter which should be included with all standard Python distributions. If you get import errors, try installing it manually, e.g. in linux with

sudo apt-get install python3-tk

usage:

GUI:

In a terminal, run

flowkey-dl

Go to flowkey.com, select a song or lesson and right click on the sheet track at the bottom of the page. Flowkey made it harder to get the url of the underlying images, simply right click does not work anymore. It should still work when looking in the browsers cache. With google-chrome browser, you find it by clicking on the three dots in the top right -> more tools -> developer tools, then on the "sources" tab. Here you should find cdn.flowkey.com with a folder /sheets (or /rendered-sheets), with all the songs from the last session. Click right on the first image (0.png or 0@2x.png) and then 'copy link location'. There is probably similar ways in other browsers. Again, flowkey changed their backend, and the above procedure does not work anymore. You can get the image url programmatically, in the console of the web browser. with google-chrome browser, you find it by clicking on the three dots in the top right -> more tools -> developer tools, then on the "Console" tab. There you can paste in the following lines:

var img = document.querySelector("div.sheet-image");
var imgUrl = img.style.backgroundImage.slice(4, -1).replace(/"/g, "");
console.log(imgUrl);

Paste this url (e.g. https://cdn.flowkey.com/rendered-sheets/XXXXXXX/XXXXXXX/0@2x.png)) into the url filed of the app. Click on "load" and the sheet is downloaded and aranged. If you enter title and author, it gets added to the sheet. Optionally adjust layout, scale and font size and select measures (e.g. 1,3,5-10 would select only measures 1, 3 and 5 to 10). Click save to save the sheet as pdf.

If the font size does not change, you probably do not have the fonts installed. Try installing either FreeMono or arial as ttf.

CLI:

To start the command line interface run

flowkey-dl-cli <URL> [<PDF-Output-Path>] [-t <title>] [-a <artist>]

This will download the sheet music for the provided flowkey url and export it in pdf format.

The base url refers to the url from flowkey as described above (e.g. https://cdn.flowkey.com/rendered-sheets/XXXX/<...>) and is required.

Metadata

Release files for flowkey-dl 0.1.10

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

Source distribution (sdist)

Source distribution for flowkey-dl 0.1.10
File Size Uploaded
flowkey_dl-0.1.10.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flowkey-dl 0.1.10
File Interpreter ABI Platform
flowkey_dl-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 19.4 kB

Release files / flowkey_dl-0.1.10.tar.gz

Download URL flowkey_dl-0.1.10.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
24943fbec4f09cbb84e2f0191221381be442b592457a22cc9f1863231e21b588
BLAKE2b-256 checksum
How to use checksums
170cc47d20cd1b69bc3d9992fcce0ff88a49ceadf0ef3b4caca2bda3468d3331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / flowkey_dl-0.1.10-py3-none-any.whl

Download URL flowkey_dl-0.1.10-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd64121958c46ef3b7545cf2947c0ff99e05978d909c893b250d5f785c0d7b4b
BLAKE2b-256 checksum
How to use checksums
d8d0d659cd7b2fcf4e5ca0a2b3795df60766f3f0b027ea3f43c923f35a1b81db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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