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
    Discord Token Generator of a project - Some stupids ppl are trying to leak it so i'm leaking faster :)

    Original creator: Rolf (dort) HCaptcha Bypasser: h0nde Shark.Solar Discord Token Generator of a project - Some stupids ppl are trying to leak it so i'

    Stanley 14 Sep 29, 2021
    A Discord Bot for the Pygame Community Server

    PygameCommunityBot The Pygame Community Discord bot The bot is capable of doing a lot of stuff, the command prefix is pg!. For help on all the bot com

    PygameCommunityDiscord 23 Nov 30, 2022
    A pyrogram simple bot for Educational purpose.

    A pyrogram simple bot for Educational purpose. To Learn More check at @PyrogramBot or on Documentation Mandatory variables API_ID - Get It From my.tel

    SpamShield 10 Dec 06, 2022
    ALIEN: idA Local varIables rEcogNizer

    ALIEN: idA Local varIables rEcogNizer ALIEN is an IDA Pro plugin that allows the user to get more information about ida local variables with the help

    16 Nov 26, 2022
    A multipurpose, semi-modular Discord bot written in Python with the new discord.py module.

    Discord.py Reaction Bot MIRAI KURIYAMA A multipurpose, semi-modular Discord bot written in Python with the new discord.py module. Installing dependenc

    1 Dec 02, 2021
    An interactive and multi-function Telegram bot, made especially for Telegram groups.

    PyKorone An interaction and fun bot for Telegram groups, having some useful and other useless commands. Created as an experiment and learning bot but

    Amano Team 17 Nov 12, 2022
    Unofficial YooMoney API python library

    API Yoomoney - unofficial python library This is an unofficial YooMoney API python library. Summary Introduction Features Installation Quick start Acc

    Aleksey Korshuk 136 Dec 30, 2022
    Hostapd-mac-monitor - Setup a hostapd AP to conntrol the connections of specific MACs

    A brief explanation This script provides way to setup a monitoring service of sp

    2 Feb 03, 2022
    A Telegram Bot to return Youtube Video Tags Using YoutubeTags API

    YouTube-TagFind-Bot A Telegram Bot to return Youtube Video Tags Using YoutubeTags API YoutubeTags API Wrapper YoutubeTags is a python third-party api

    Nuhman Pk 9 Aug 25, 2022
    PR Changes Matrix Builder

    Pr-changes-matrix-builder - A Github Action that will output a variable to be used in a matrix strategy job based on a PR&'s changes

    Kyle James Walker (he/him) 21 Oct 04, 2022
    Auto-Approved-Bot - Auto Approved Invaite Link Request Telegram Bot

    πŸ€– π—”π˜‚π˜π—Ό-π—”π—½π—½π—Ώπ—Όπ˜ƒπ—²-π—•π—Όπ˜ πŸ€– ℹ️ π—¨π˜€π—²π—΄π—² ℹ️ When a join request invita

    Muhammed 32 Dec 18, 2022
    Discord bot for name verifying. Created for TinkerHubGCEK discord server. Tinky is now deployed in heroku

    Custom Discord bot This custom discord-python bot assigns roles to members joined at discord server. It looks and compares a list before verifying the

    Edwin Jose George 2 Dec 16, 2021
    This is a tutorial on how to make a Discord Bot using the discord.py library

    HowToMakeADiscordBot This Github repository is here to help you code a Discord Bot using the discord.py library! 1 - Setup: Download the code inside t

    Baz 1 Oct 31, 2021
    Adriano's Diets Consulting Bot - Parses and extracts informations about your diet (files in the Adriano's format).

    Adriano's Diets Consulting Bot - Parses and extracts informations about your diet (files in the Adriano's format).

    Marco A. 2 Feb 07, 2022
    a simple python script that monitors the binance hotwallet and refunds the withdrawal fee to encourage people to withdraw their Nano and help decentralisation

    Nano_Binance_Refund_Bot a simple python script that monitors the binance hotwallet and refunds the withdrawal fee to encourage people to withdraw thei

    James Coxon 5 Apr 07, 2022
    Data and a Twitter bot for the EPA's DOCUMERICA (1972-1977) program.

    documerica This repository holds JSON(L) artifacts and a few scripts related to managing archival data from the EPA's DOCUMERICA program. Contents: Ma

    William Woodruff 2 Oct 27, 2021
    A Telegram Userbot to play Audio and Video songs / files in Telegram Voice Chats.

    VC UserBot A Telegram Userbot to play Audio and Video songs / files in Telegram Voice Chats. It's made with PyTgCalls and Pyrogram Requirements Python

    쑰던 1 Nov 29, 2021
    Fetch tracking numbers of Amazon orders, for the ease of the logistics.

    Amazon-Tracking-Number Fetch tracking numbers of Amazon orders, for the ease of the logistics. Read Me First (How to use this code): Get Amazon "Items

    Tony Yao 1 Nov 02, 2021
    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

    1 Jan 19, 2022
    A Code that can make your Discord Account 24/7!

    Online-Forever Make your Discord Account Online 24/7! A Code written in Python that helps you to keep your account 24/7. The main.py is the main file.

    Phantom 556 Dec 29, 2022