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
    ACL 2022: CAKE: A Scalable Commonsense-Aware Framework For Multi-View Knowledge Graph Completion

    CAKE ACL 2022: CAKE: A Scalable Commonsense-Aware Framework For Multi-View Knowledge Graph Completion Introduction This is the PyTorch implementation

    Niu Guanglin 31 Dec 07, 2022
    CLI tool that checks who does and who does not follow you back on Instagram

    CLI tool that checks who does and who does not follow you back on Instagram. It also checks who you don't follow back on Instagram.

    Ayushman Roy 3 Dec 02, 2022
    Script to get a notification when a product, on Amazon Warehouse, is available within a target price

    Amazon_Warehouse_Scraping This script aims to scrape Amazon Warehouse and send an email back if there are products whose price matches with the target

    2 Oct 25, 2021
    This Wrapper is a Discum Copy With Addons, original one is made by Merubokkusu

    Remaded Discum Its not Official Discum Wrapper ! This Wrapper is a Discum Copy With Addons, original one is made by Merubokkusu Authors @merubokkusu (

    discum-remaded 8 Aug 09, 2022
    a discord bot coded in Python which shows news based on the term searched by the user

    Noah Miller v1.0 a discord bot coded in Python which shows news based on the term searched by the user Add the bot to your server About This is a disc

    klevr 3 Nov 08, 2021
    A small bot to interact with the reddit API. Get top viewers and update the sidebar widget.

    LiveStream_Reddit_Bot Get top twitch and facebook stream viewers for a game and update the sidebar widget and old reddit sidebar to show your communit

    Tristan Wise 1 Nov 21, 2021
    Available slots checker for Spanish Passport

    Bot that checks for available slots to make an appointment to issue the Spanish passport at the Uruguayan consulate page

    1 Nov 30, 2021
    The system to host your files on the Discord application

    Distorage The system to host your files on the Discord application Documentation Documentation Distorage How to use the package You can install it wit

    6 Jun 27, 2022
    A Simple Telegram Inline Torrent Search Bot by @infotechIT

    Torrent-Search-RoBot A Simple Telegram Inline Torrent Search Bot by @infotechIT. Torrent API Using api.infotech.wtf API Host Bot Deploy to Heroku Clic

    InfoTech 0 May 05, 2022
    Discord Bot Sending Members - Leaked by BambiKu ( Me )

    Wokify Bot Discord Bot Sending Members - Leaked by BambiKu ( Me ) Info The Bot was orginaly made by someone else! Ghost-Dev just wanted to sell "priva

    bambiku 6 Jul 05, 2022
    GUI Pancakeswap V2 and Uniswap V3 trading client (and bot)MOST ADVANCE TRADING BOT SUPPORT WINDOWS LINUX MAC

    GUI Pancakeswap 2 and Uniswap 3 trading client (and bot) (MOST ADVANCE TRADING BOT SUPPORT WINDOWS LINUX MAC) UPDATE: MUTI TRADE TOKEN ENABLE ,TRADE 1

    2 Dec 27, 2021
    Discord bot do sprawdzania ceny pizzy.

    Discord bot do sprawdzania ceny pizzy w pizzeri Bombola. Umieszczony jest na platformie Heroku, dziฤ™ki czemu dziaล‚a 24/7. Commands List Info: Jako com

    1 Sep 18, 2021
    A calculator telegram bot.

    Calculator-Bot A calculator telegram bot. Made with Python3 (C) @FayasNoushad Copyright permission under MIT License License - https://github.com/Fay

    Fayas Noushad 33 Nov 30, 2022
    Wrapper around the UPS API for creating shipping labels and fetching a package's tracking status.

    ClassicUPS: A Useful UPS Library ClassicUPS is an Apache2 Licensed wrapper around the UPS API for creating shipping labels and fetching a package's tr

    Jay Goel 55 Dec 12, 2022
    Boto is a Python package that provides interfaces to Amazon Web Services.

    Boto is a Python package that provides interfaces to Amazon Web Services.

    the boto project 6.5k Jan 01, 2023
    python3.5+ hubspot client based on hapipy, but modified to use the newer endpoints and non-legacy python

    A python wrapper around HubSpot's APIs, for python 3.5+. Built initially around hapipy, but heavily modified. Check out the documentation here! (thank

    Jacobi Petrucciani 140 Dec 21, 2022
    Simple python program to execute terminal commands on telegram chats directly.

    Small python code which can be handy when using telegram and you don't want to use VPS again and again. By configuring the code in your VPS, You can execute commands and get your output within telegr

    Veshraj Ghimire 34 Dec 05, 2022
    Aria/qBittorrent Telegram mirror/leech bot.

    Missneha Mirror Leech Bot Aria/qBittorrent Telegram mirror/leech bot. missneha Mirror Leech Bot is a multipurpose Telegram Bot written in Python for m

    ACHAL 6 Sep 30, 2022
    ๐ŸŽ„ JustaGrabber - A discord token grabber written in python3

    ๐ŸŽ„ JustaGrabber - A discord token grabber written in python3 ๐ŸŽ‡ Made by kldiscord https://github.com/kldiscord ๐ŸŒŸ Please leave a star if you liked Jus

    1 Dec 19, 2022
    The Fasted Proxyless Multi-Threaded Discord Call Crasher

    Discord-Call-Crasher The Fasted Proxyless Multi-Threaded Discord Call Crasher (Created By Jonah) Requirements / Setting up There will be a few things

    8ua 10 Jun 17, 2022