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
    Disqus API bindings for Python

    disqus-python Let's start with installing the API: pip install disqus-python Use the API by instantiating it, and then calling the method through dott

    DISQUS 163 Oct 14, 2022
    This is a simple unofficial async Api-wrapper for tio.run

    Async-Tio This is a simple unofficial async Api-wrapper for tio.run

    Tom-the-Bomb 7 Oct 28, 2022
    A discord token creator that uses the service capmonster for captcha solving!

    Discord Token Creator A discord token creator that uses the service capmonster for captcha solving! Report Bug · Request Feature Features Autojoin dis

    dropout 41 Oct 25, 2021
    This is Telegram Files Store Bot by @AbirHasan2005

    PyroFilesStoreBot This is Telegram Parmanent Files Store Bot by @AbirHasan2005. Language: Python3 Library: Pyrogram Features: In PM Just Forward or Se

    Abir Hasan 168 Dec 19, 2022
    Python Script to download hundreds of images from 'Google Images'. It is a ready-to-run code!

    Google Images Download Python Script for 'searching' and 'downloading' hundreds of Google images to the local hard disk! Documentation Documentation H

    Hardik Vasa 8.2k Jan 05, 2023
    A simple Discord Bot that uses the free CryptoCompare API to display cryptocurrency prices

    What is this? This is a simple Discord Bot coded in Python that uses the free CryptoCompare API to display cryptocurrency prices Download Use git to c

    Kevin 10 Apr 17, 2022
    Python app to notify via slack channel the status_code change from an URL

    Python app to notify, via slack channel you choose to be notified, for the status_code change from the URL list you setup to be checked every yy seconds

    Pedro Nunes 1 Oct 25, 2021
    A Anything goes Discord bot written in python and uses the wrapper Discord.py

    GerardTheWizard A Anything goes Discord bot written in python and uses the wrapper Discord.py What can he do? Allow users to level up through typing,

    1 May 05, 2022
    This is a simple Python bot to identify sentiments in tweets

    Twitter-Sentiment 👋 Hi There! 📱 This is a simple Python bot to identify sentiments in tweets 👨‍💻 This project was made for study, and pratice. You

    Guilherme Silva 1 Oct 28, 2021
    Github Workflows üzerinde Çalışan A101 Aktüel Telegam Bot

    A101AktuelRobot Github Workflows üzerinde Çalışan A101 Aktüel Telegam Bot @A101AktuelRobot 💸 Bağış Yap ☕️ Kahve Ismarla 🌐 Telif Hakkı ve Lisans Copy

    Ömer Faruk Sancak 10 Nov 02, 2022
    Music bot for Discord

    Treble Music bot for Discord Youtube is after music bots on Discord. So we are here to fill the void. Introducing Treble, the next generation of Disco

    Aja Khanal 0 Sep 16, 2022
    🔍 📊 Look up information about anime, manga and much more directly in Discord!

    AniSearch The source code of the AniSearch Discord Bot. Contribute You have an idea or found a bug? Open a new issue with detailed explanation. You wa

    私はレオンです 19 Dec 07, 2022
    AWS Lambda Fast API starter application

    AWS Lambda Fast API Fast API starter application compatible with API Gateway and Lambda Function. How to deploy it? Terraform AWS Lambda API is a reus

    OBytes 6 Apr 20, 2022
    Working TikTok Username Auto-Claimer/Sniper/Swapper which will autoclaim username if it´s available

    TikTok-AutoClaimer Working TikTok Username Auto-Claimer/Sniper/Swapper which will autoclaim username if it´s available Usage Python 3.6 or above is re

    Kevin 18 Dec 08, 2022
    Powerful Telegram bot to countdown to your important events in any group chat.

    Powerful Telegram bot to countdown to your important events in any group chat. Live countdown timer.

    118 Dec 30, 2022
    C Y B Ξ R UserBot is a project that simplifies the use of Telegram.

    C Y B Ξ R USΞRBOT 🇦🇿 C Y B Ξ R UserBot is a project that simplifies the use of Telegram. All rights reserved. Automatic Setup Android: open Termux p

    FVREED 4 Dec 07, 2022
    WhatsApp API Python ChatBot

    WhatsApp Api Python - Esta documentação tem como objetivo exemplificar o uso do Moorse Whatsapp API na linguagem Python.

    Douglas Alves 2 Jan 06, 2022
    Modular Telegram bot running on Python

    Modular Telegram bot running on Python

    Jefanya Efandchris 1 Dec 26, 2021
    Бот - Гуль для твоего телеграм аккаунта

    Я - Гуль (бот), теперь работает в чатах Отблагодарить автора за проделанную работу можно здесь Помощь с установкой тут Установка на Андроид После уста

    57 Nov 06, 2022
    Temperature Monitoring and Prediction Using a Modified Lambda Architecture

    Temperature Monitoring and Prediction Using a Modified Lambda Architecture A more detailed write up can be seen in this paper. Original Lambda Archite

    Parsa Yousefi 2 Jun 27, 2022