A Python script to create customised Spotify playlists using the JSON, Spotipy Library and Spotify Web API, based on seed tracks in your history.

Overview

Smart Spotify Playlists

Ever wanted something MORE than your Discover Weekly on Spotify?

A playlist that not only lets you select songs to base your new tracks in, BUT ALSO immediately enters your library without having to click a single button on the Spotify app itself?

Here it is folks, all yours - just read these few notes before you begin!

*Clarification: I wrote and ran this code on a MacOS command line, so just be aware when setting up libraries or environment variables to run commands compatible to YOUR system!

Install the Right Libraries

This short piece of code uses the Python3 language, as well as the JSON and Spotipy Python3 libraries. Spotipy is specifically designed for accessing Spotify's Web API, allowing you to gain full access to all music data on the platform.

Spotipy isn't a built-in library, so you can install it by running: pip3 install spotipy --upgrade on your terminal.

Set Up a Spotify for Developers Application

Next, set up an account at Spotify for Developers, and create an application. This will give you get the credentials necessary to make authorized calls - a client id and client secret. These will be 2 of 3 environment variables to be exported.

This code uses the Authorization Code Flow for the Spotipy library. This link tells you how to set up your redirect URI, the last of your environment variables.

Run the Code

Export the environment variables which you set up before:

export SPOTIPY_CLIENT_ID='your-spotify-client-id'

export SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'

export SPOTIPY_REDIRECT_URI='your-app-redirect-url'

Finally, run the entry-point script and follow the console instructions:

python3 smartspotifyplaylists.py

That's it! Have fun with this small code! Thanks for using it!

Sincerely,

Youngseo Park

Owner
Youngseo Park
Just a small town girl, living in a big, big world.
Youngseo Park
Fetch the details of assets hosted on AWS.

onaws onaws is a simple tool to check if an IP/hostname belongs to the AWS IP space or not. It uses the AWS IP address ranges data published by AWS to

Amal Murali 80 Dec 29, 2022
An API that uses NLP and AI to let you predict possible diseases and symptoms based on a prompt of what you're feeling.

Disease detection API for MediSearch An API that uses NLP and AI to let you predict possible diseases and symptoms based on a prompt of what you're fe

Sebastian Ponce 1 Jan 15, 2022
A Discord token stealer app written in Python 3.

Discord Token Stealer A Discord token stealer app written in Python 3. This version of the grabber only supports Windows. Features No local caching Tr

cankat 45 Jan 03, 2023
Grape - A webbrowser with its own Search Engine

Grape πŸ”Ž A Web Browser made entirely in python. Search Engine πŸ”Ž Installation: F

Grape 2 Sep 06, 2022
Rotates Amazon Personalize filters on a schedule based on dynamic templates

Amazon Personalize Filter Rotation This project contains the source code and supporting files for deploying a serverless application that provides aut

James Jory 2 Nov 12, 2021
The wrapper you need for the osu!api v2

oppy (op.py) oppy is the wrapper for use on the osu! v2 API. Version 1.0.0 Installation To install please use pip to install oppy pip install op.py To

Wayde 2 May 01, 2022
Telegram tools

Telegram-Tools Telegram tools. Explanation English | δΈ­ζ–‡ Features Export group memebrs Add users to the group Send message to users Setup API Open http

4 Apr 02, 2022
CoWIN Vaccination slot booking telegram bot with auto captcha resolver & alerting feature.Now, never miss a slot.

COWIN VACCINATION SLOT AUTO BOOKING (Bot with captcha solving & alerting capabilities. Never miss the vaccine slot.) June-10-2021/ 0030 hrs: 23 succes

Shashank Bafna 17 Nov 12, 2022
The official Python client library for the Kite Connect trading APIs

The Kite Connect API Python client - v3 The official Python client for communicating with the Kite Connect API. Kite Connect is a set of REST-like API

Zerodha Technology 756 Jan 06, 2023
Best Buy purchase bot

B3 Best-Buy-Bot. Written in Python NOTICE: Don't be a disgrace to society. Don't use this for any mass buying/reselling purposes. About B3 is a bot th

Dogey11 8 Aug 15, 2022
Evernote SDK for Python

Evernote SDK for Python Evernote API version 1.28 This SDK is intended for use with Python 2.X For Evernote's beta Python 3 SDK see https://github.com

Evernote 612 Dec 30, 2022
Cleiton Leonel 4 Apr 22, 2022
Slack->DynamDB->Some applications

slack-event-subscriptions About The Project Do you want to get simple attendance checks? If you are using Slack, participants can just react on a spec

UpstageAI 26 May 28, 2022
A Python API wrapper for the Twitter API!

PyTweet PyTweet is an api wrapper made for twitter using twitter's api version 2! Installation Windows py3 -m pip install PyTweet Linux python -m pip

TheFarGG 1 Nov 19, 2022
Yes, it's true :heartbeat: This repository has 337 stars.

Yes, it's true! Inspired by a similar repository from @RealPeha, but implemented using a webhook on AWS Lambda and API Gateway, so it's serverless! If

512 Jan 01, 2023
Easy Discord Webhook Token Grabber!

Easy Discord Webhook Token Grabber!

†† 27 Jun 01, 2022
Secret messaging app which you can use to communicate with your friends by encrypting / decrypting secret messages or sending secret message through mail.

Secret-Whisper A Secret messaging app which you can use to communicate with your friends by encrypting / decrypting secret messages 🀫 or sending secr

3 Jan 01, 2022
A bot which provides online/offline and player status for Thicc SMP, using Replit.

AlynaaStatus A bot which provides online/offline and player status for Thicc SMP. Currently being hosted on Replit. How to use? Create a repl on Repli

QuanTrieuPCYT 8 Dec 15, 2022
Scheduled Block Checker for Cardano Stakepool Operators

ScheduledBlocks Scheduled Block Checker for Cardano Stakepool Operators Lightweight and Portable Scheduled Blocks Checker for Current Epoch. No cardan

SNAKE (Cardano Stakepool) 4 Oct 18, 2022
Cyber Userbot

Cyber Userbot

Irham 0 May 26, 2022