This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Spotipy: https://spotipy.readthedocs.io/ | |
import argparse, os, re, requests, shutil, spotipy, sys | |
from spotipy.oauth2 import SpotifyClientCredentials | |
def main(): | |
parser=argparse.ArgumentParser() | |
parser.add_argument('--id', help='[REQUIRED] Your Spotify API app client ID (see https://developer.spotify.com/dashboard)') | |
parser.add_argument('--secret', help='[REQUIRED] Your Spotify API app client secret') | |
parser.add_argument('--track', help='The full label for the track, in the format "<artist> - <title>"') | |
parser.add_argument('--artist', help='The track artist (overrides the --track argument)') |