mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Hope we don't get rate limited
This commit is contained in:
11
spotdl.py
11
spotdl.py
@@ -12,7 +12,7 @@ import pafy
|
|||||||
import os
|
import os
|
||||||
import argparse
|
import argparse
|
||||||
import pathlib
|
import pathlib
|
||||||
#import spotipy.util as util
|
import spotipy.util as util
|
||||||
|
|
||||||
def getInputLink(links):
|
def getInputLink(links):
|
||||||
while True:
|
while True:
|
||||||
@@ -234,7 +234,14 @@ if not os.path.exists("Music"):
|
|||||||
os.makedirs("Music")
|
os.makedirs("Music")
|
||||||
open('list.txt', 'a').close()
|
open('list.txt', 'a').close()
|
||||||
|
|
||||||
spotify = spotipy.Spotify()
|
# Please respect this user token :)
|
||||||
|
token = util.prompt_for_user_token('Spotify-Downloader',
|
||||||
|
scope = 'playlist-read-private',
|
||||||
|
client_id='4fe3fecfe5334023a1472516cc99d805',
|
||||||
|
client_secret='0f02b7c483c04257984695007a4a8d5c',
|
||||||
|
redirect_uri='http://localhost:9876/callback')
|
||||||
|
|
||||||
|
spotify = spotipy.Spotify(auth=token)
|
||||||
|
|
||||||
# Set up arguments
|
# Set up arguments
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
|||||||
Reference in New Issue
Block a user