Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.77 KB

README.md

File metadata and controls

32 lines (27 loc) · 1.77 KB

Info

Better version that edits the .stl template file is ready https://github.com/Silvesterrr/spotify-to-stl

spotify_song_to_stl

Spotify-song-to-stl is a python command-line based program designed to get .stl file of 'spotify code' based on spotify url.

Usage

spotify_song_to_stl.py [spotify-url] [code-height] [base-height]

Example

You start by copying spotify song url as below. alt text

Than you run python file from console
spotify_song_to_stl.py spotify:track:5W3cjX2J3tjhG8zb6u0qHn 1 4.5
Number 1 is height of only code and 4.5 is height of base. So full height will be 5.5 (Unit is mm obviously)
And after this we get something like this:
alt text As you can see model needs some repairing so i put it on this webside https://tools3d.azurewebsites.net/
In future this feature may be included in the code.
And bum just like that we got this model:
alt text

Requirements and Other

  • You have to have python installed.
  • You have to install selenium and pillow (pip install selenium, pip install Pillow)
  • Make sure that chromedriver added in the files is in thesame folder as python file
  • Make sure that you have chrome browser installed.
  • If the chromedriver added in the files won't work download it from this webside https://chromedriver.chromium.org/downloads (version equal to your chrome version).

This code is really sketchy. Im still learning. Hope You like it.
If you have any problems, or you have any suggestions feel free to contact me at: [email protected]