This projects aims to generate simple Spotify codes that are scannable throught the official Spotify app on Android/iOS. Generated scannables will be outputted to the out/
directory with the Spotify UID as name.
$ python scannable/main.py https://open.spotify.com/artist/6J7biCazzYhU3gM9j1wfid -s 300
:: Your scannable code is:
https://scannables.scdn.co/uri/plain/png/000000/white/300/spotify:artist:6J7biCazzYhU3gM9j1wfid
usage: scannable.py [-h] [-f FORMAT] [-b BACKGROUND] [-t TEXT] [-s SIZE] link
Generate Spotify scannable code through a Python script.
positional arguments:
link Spotify link to generate a scannable image from
options:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
file format for the scannable output
-b BACKGROUND, --background BACKGROUND
background color for the scannable output
-t TEXT, --text TEXT text color for the scannable output
-s SIZE, --size SIZE size of the scannable output
- For the
--format
parameter, you are supposed to choose a format file frompng
,jpeg
andsvg
; - for the
--background
parameter, you are supposed to insert a HEX code; - for the
--text
parameter, you are supposed to insert eitherwhite
orblack
; - for the
--size
parameter, you are supposed to insert a value between256
and2047
.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.