Automate saving your Discover Weekly Playlist using Python.

Overview

SpotWeekly

Automate saving your Discover Weekly Playlist using Python. Made with <3 and FastAPI.
The saved playlist link is sent to my discord server via a webhook.

Installation

Clone this repository.

git clone https://github.com/shouryade/SpotWeekly

This project uses pipenv to create a virtual environment.

pip install pipenv

Activate and install dependencies using pipenv.

cd SpotWeekly
pipenv sync 

For venv enthusiasts, I have provided a requirements.txt file to help install project dependencies.

Rename the env.example file to .env.

Setup

Registering Your Spotify App on Spotify for Developers
  • Create a Spotify Developer account.
  • Copy the Client ID and Client SECRET and paste it in the .env file.
  • Go to edit settings and set Redirect URI to http://127.0.0.1:5000/callback as shown

  • Setting up webhook for Discord
  • You need to have the create and manage webhook permissions in the server.
  • Go to Server Settings > Integrations > New Webhook
  • Fill the required values and select the channel for the webhook to be posted in.
  • Click on Copy Webhook URL
  • Paste the copied url in .env file.

  • Usage

    To get the playlist ID for your Discover Weekly, copy the link for the playlist.
    The highlighted portion as shown in the image is the Spotify Playlist ID.

    Spotify Playlist ID
    Extract the ID and paste it onto the .env file.
    Fill the remaining details in the .env file.

    Run app.py and copy the token supplied. Run main.py and supply the parameters asked.
    Check Discord once Successfully created playlist ! is printed on screen.

    Roadmap

    [ ] Create Docker instance.
    [ ] Run this as a cron job using Github Workflows.
    [ ] Create a bash script for a cron job if locally deployed.

    Contributing

    Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

    Owner
    shourya
    Learning stuff
    shourya
    AWS Blog post code for running feature-extraction on images using AWS Batch and Cloud Development Kit (CDK).

    Batch processing with AWS Batch and CDK Welcome This repository demostrates provisioning the necessary infrastructure for running a job on AWS Batch u

    AWS Samples 7 Oct 18, 2022
    a simple floating window for watch cryptocurrency price

    floating-monitor with cryptocurrency 浮動視窗虛擬貨幣價格監控 a floating monitor window to show price of cryptocurrency. use binance api to get price 半透明的浮動視窗讓你方便

    Lin_Yi_Shen 1 Oct 22, 2021
    A discord.py bot template with easy deployment through Github Actions

    discord.py bot template A discord.py bot template with easy deployment through Github Actions. You can use this template to just run a Python instance

    Thomas Van Iseghem 1 Feb 09, 2022
    A file-based quote bot written in Python

    Let's Write a Python Quote Bot! This repository will get you started with building a quote bot in Python. It's meant to be used along with the Learnin

    Jyoti prakash Rout 1 Jan 08, 2022
    An Anime Themed Fast And Safe Group Managing Bot.

    Ξ L I N Λ 👸 A Powerful, Smart And Simple Group Manager bot Avaiilable a latest version as Ξ L I N Λ 👸 on Telegram Self-hosting (For Devs) vps # Inst

    7 Nov 12, 2022
    Webservice that notifies users on Slack when a change in GitLab concern them.

    Gitlab Slack Notifier Webservice that notifies users on Slack when a change in GitLab concern them. Setup Slack Create a Slack app, go to "OAuth & Per

    Heuritech 2 Nov 04, 2021
    A Code that can make your Discord Account 24/7 on Voice Channels!

    Voicecord Make your Discord Account Online 24/7 on Voice Channels! A Code written in Python that helps you to keep your account 24/7 on Voice Channels

    Phantom 229 Jan 07, 2023
    Template to create a telegram bot in python

    Template for Telegram Bot Template to create a telegram bot in python. How to Run Set your telegram bot token as environment variable TELEGRAM_BOT_TOK

    PyTopia 12 Aug 14, 2022
    Ap lokit lokit

    🎵 FANDA PROJECT 🎵 HAI AKU FANDA! Requirements 📝 FFmpeg NodeJS nodesource.com Python 3.8 or higher PyTgCalls MongoDB Get STRING_SESSION from below:

    Fatur 2 Nov 18, 2021
    Autov2new - Pro Auto Filter Bot V2

    Pro Auto Filter Bot V2 Deploy You can deploy this bot anywhere. Watch Deploying

    1 Jan 06, 2022
    A script to find the people whom you follow, but they don't follow you back

    insta-non-followers A script to find the people whom you follow, but they don't follow you back Dependencies: python3 libraries - instaloader, getpass

    Ritvik 5 Jul 03, 2022
    Fetching tweets and integrating it with Kafka and PySpark

    KafkaPySpark Zookeeper bin/zookeeper-server-start.sh config/zookeeper.properties Kafka Server bin/kafka-server-start.sh config/server.properties Kafka

    Priyansh 2 Dec 29, 2021
    A.I and game for gomoku, working only on windows

    Gomoku (A.I of gomoku) The goal of the project is to create an artificial intelligence of gomoku. Goals Beat the opponent. Requirements Python 3.7+ Wo

    Luis Rosario 13 Jun 20, 2021
    Async ShareX uploader written in python

    Async ShareX uploader written in python

    Jacob 2 Jan 07, 2022
    tfquery: Run SQL queries on your Terraform infrastructure. Query resources and analyze its configuration using a SQL-powered framework.

    🌩️ tfquery 🌩️ Run SQL queries on your Terraform infrastructure. Ask questions that are hard to answer 🚀 What is tfquery? tfquery is a framework tha

    Mazin Ahmed 311 Dec 21, 2022
    A program that automates the boring parts of completing the Daily accounting spreadsheet at Taos Ski Valley

    TSV_Daily_App A program that automates the boring parts of completing the Daily accounting spreadsheet at my old job. To see how it works you will nee

    Devin Beck 2 Jan 01, 2022
    Repo-cloner - Script takes user public liked repos and clone it to a local folder

    Liked repos cloner Script takes user public liked repos and clone it to a local

    Aleksei 2 Jun 18, 2022
    Ein PY-Skript, mit dem tiled-Editor-Maps bearbeitet werden

    tilesetCopyrighter Ein PY-Skript, mit dem tiled-Editor-Maps bearbeitet werden können fügt je Tileset eine custom-Property tilesetCopyright (string) hi

    1 Dec 26, 2021
    ImaginaryTicketing is a simple ticketing system for running CTF Competitions on discord.

    ImaginaryTicketing ImaginaryTicketing is a simple ticketing system for running CTF Competitions on discord. Be sure to checkout ImaginaryCTF. See docs

    GudOreos 8 Jul 18, 2022
    A program that generates discord.py code

    discord-py-generator A program that generates discord.py code Setup in cmds.txt file add your user id, client id and bot token you can change the bot

    3 Dec 15, 2022