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
    This Mirror Bot is a multipurpose Telegram Bot writen in Python for mirroring files on the Internet to our beloved Google Drive.

    MIRROR HUNTER This Mirror Bot is a multipurpose Telegram Bot writen in Python for mirroring files on the Internet to our beloved Google Drive. Repo la

    anime republic 130 May 28, 2022
    Fun telegram bot =)

    Recolor Bot About Fun telegram bot, that can change your hair color. Preparations Update package lists sudo apt-get update; Make sure Git and docker-c

    Just Koala 4 Jul 09, 2022
    Google Sheets Python API v4

    pygsheets - Google Spreadsheets Python API v4 A simple, intuitive library for google sheets which gets your work done. Features: Open, create, delete

    Nithin Murali 1.4k Jan 08, 2023
    Red-mail - Advanced email sending library for Python

    Red Mail Next generation email sender What is it? Red Mail is an advanced email

    Mikael Koli 313 Jan 08, 2023
    Python function to construct an ODS spreadsheet on the fly - without having to store the entire file in memory or disk

    stream-write-ods Python function to construct an ODS (OpenDocument Spreadsheet) on the fly - without having to store the entire file in memory or disk

    Department for International Trade 1 Oct 09, 2022
    An youtube videos thumbnail downloader telegram bot.

    YouTube-Thumbnail-Downloader An youtube videos thumbnail downloader telegram bot. Made with Python3 (C) @FayasNoushad Copyright permission under MIT L

    Fayas Noushad 40 Oct 21, 2022
    Modular Telegram bot running on Python

    Modular Telegram bot running on Python

    Jefanya Efandchris 1 Dec 26, 2021
    Send pm to Admin - Telegram

    Send pm to Admin - Telegram

    Ahoora 3 Nov 17, 2022
    Black-hat with python

    black-hat_python Advantages - More advance tool Easy to use allows updating tool update - run bash update.sh Here -: Command to install tool main- clo

    Hackers Tech 2 Feb 10, 2022
    A Simple, Easy to use and light-weight Pyrogram Userbot

    Nexa Userbot A Simple, Easy to use and light-weight Pyrogram Userbot Deploy With Heroku With VPS (Local) Clone Nexa-Userbot repository git clone https

    I'm Not A Bot #Left_TG 28 Nov 12, 2022
    Make low level API wrapper in fast, easy.

    The lowrapper is a library for quickly and easily creating an environment for tapping the API without implementation.

    tasuren 1 Oct 25, 2022
    Anti Spam/NSFW Telegram Bot Written In Python With Pyrogram.

    ✨ SpamProtectionRobot ✨ Anti Spam/NSFW Telegram Bot Written In Python With Pyrogram. Requirements Python = 3.7 Install Locally Or On A VPS $ git clon

    Akshay Rajput 46 Dec 13, 2022
    Minecraft checker

    This Project checks if a minecraft account is a nfa/sfa account or invalid it also says you if the ip you are using is shadow banned from minecraft (shadow bann is if you send too many login attempts

    baum1810 4 Oct 03, 2022
    Kang Sticker bot

    Kang Sticker Bot A simple Telegram bot which creates sticker packs from other stickers, images, documents and URLs. Based on kangbot Deploy Credits: s

    Hafitz Setya 11 Jan 02, 2023
    A bot to playing music in telegram vcg

    Idzeroid Music|| Idzeroid Music adalah sebuah repository music bot telegram untuk memainkan suara di voice chat group anda. Fyi This repo im using for

    idzeroid 1 Oct 26, 2021
    ShotsGram - For sending captures from your monitor to a telegram chat (robot)

    ShotsGram pt-BR Envios de capturas do seu monitor para um chat do telegram. Essa

    Carlos Alberto 1 Apr 24, 2022
    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
    Trabalho N1 para a materia Tecnicas de Progamação da Anhembi Morumbi

    Projeto da Anhembi Morumbi - Tecnicas de Programação. RPG de Console (CMD) Trabalho proposto pelo professor André Santana, na materia Tecnicas de Prog

    Leonardo Silva M de Barros 3 Sep 12, 2021
    Please Do Not Throw Sausage Pizza Away - Side Scrolling Up The OSI Stack

    Please Do Not Throw Sausage Pizza Away - Side Scrolling Up The OSI Stack

    John Capobianco 2 Jan 25, 2022
    An API wrapper library for opensea api.

    Opensea API An API wrapper library for opensea api. Installation pip3 install opensea Usage Retrieving assets: from opensea import get_assets # This

    Ankush Singh 38 Jul 17, 2022