Author Topic: spotify youtube git hub project  (Read 603 times)

Offline andyassur

  • Administrator
  • Heavy Contributor
  • *****
  • Posts: 702
    • View Profile
spotify youtube git hub project
« on: July 31, 2018, 07:03:00 AM »
found this interesting project on git hub
https://github.com/ritiek/spotify-downloader

this uses some sort of exploit in spotify's api to download the music off of youtube. only needing the spotify https address for the album or song
Thirty spokes are joined in the wheel's hub.
The hole in the middle makes it useful.

...the value comes from what is there,
But the use comes from what is not there.

-Tao Te Ching  chapter 11

Offline jdaniele

  • Administrator
  • Sr. Member
  • *****
  • Posts: 1369
  • Never stop questioning
    • View Profile
    • JeremyDaniele.com
Re: spotify youtube git hub project
« Reply #1 on: July 31, 2018, 07:04:44 AM »
found this interesting project on git hub
https://github.com/ritiek/spotify-downloader

this uses some sort of exploit in spotify's api to download the music off of youtube. only needing the spotify https address for the album or song
I'm definitely gonna wanna test this
"The true sign of intelligence is not knowledge but imagination." - Albert Einstein

Offline andyassur

  • Administrator
  • Heavy Contributor
  • *****
  • Posts: 702
    • View Profile
Re: spotify youtube git hub project
« Reply #2 on: August 01, 2018, 12:11:41 PM »
-ff function does not work must be used as:
Quote
--file-format '{track_number}-{track_name}'
Thirty spokes are joined in the wheel's hub.
The hole in the middle makes it useful.

...the value comes from what is there,
But the use comes from what is not there.

-Tao Te Ching  chapter 11

Offline andyassur

  • Administrator
  • Heavy Contributor
  • *****
  • Posts: 702
    • View Profile
Re: spotify youtube git hub project
« Reply #3 on: August 08, 2018, 07:03:01 AM »
wrote a 2 bash scripts to make it less complicated

Quote
#! /bin/bash

python3 ~/750gig/python/spotify/spotify-downloader-master/spotdl.py -b $1


this can be rewritten instead of ~/750gig/python/spotify/spotify-downloader-master/ just put in the path to spotdl.py is located
this is also for downloading albums

the syntax for this script should look like this:
Quote
./spotifyhtml 'https://open.spotify.com/album/5fWM3vzjvjtJ2G2xOI44fn'

this creates a txt file that in the next script would have to point to.

Quote
#! /bin/bash

mkdir -p ~/750gig/spotify/$1/$2

python3 ~/750gig/python/spotify/spotify-downloader-master/spotdl.py -f ~/750gig/spotify/$1/$2 -l ~/spotify/$2.txt --file-format '{track_number}-{track_name}' --overwrite skip

rm -rf $2.txt

once again this can be rewritten instead of ~/750gig/python/spotify/spotify-downloader-master/ just put in the path to spotdl.py
and ~/750gig/spotify/$1/$2 is the location of where the music will be downloaded 2 $1 is the artist $2 is the album. no spaces should be used if you have a album with special charters like ( )  % ! these should be deleted. the syntax should be:

Quote
./spotifydownload this-is-the-artist-name this-is-the-text-file-name-minus-the-txt-at-end

this is for education purposes only
 do not steal music

Thirty spokes are joined in the wheel's hub.
The hole in the middle makes it useful.

...the value comes from what is there,
But the use comes from what is not there.

-Tao Te Ching  chapter 11

Offline andyassur

  • Administrator
  • Heavy Contributor
  • *****
  • Posts: 702
    • View Profile
Re: spotify youtube git hub project
« Reply #4 on: July 08, 2019, 02:19:32 PM »
switched to useing youtube-dl to many problems with spotdl
youtubue-dl script:

youtube-dl --ignore-errors --extract-audio --audio-format mp3 --yes-playlist -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' $1
Thirty spokes are joined in the wheel's hub.
The hole in the middle makes it useful.

...the value comes from what is there,
But the use comes from what is not there.

-Tao Te Ching  chapter 11

Offline andyassur

  • Administrator
  • Heavy Contributor
  • *****
  • Posts: 702
    • View Profile
Re: spotify youtube git hub project
« Reply #5 on: July 08, 2019, 02:42:45 PM »
Spotify and youtube don't have everything

this is a program to download from Bandcamp.com
https://github.com/iheanyi/bandcamp-dl
Thirty spokes are joined in the wheel's hub.
The hole in the middle makes it useful.

...the value comes from what is there,
But the use comes from what is not there.

-Tao Te Ching  chapter 11