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.

    You might also like...
    M3U Playlist for free TV channels

    Free TV This is an M3U playlist for free TV channels around the World. Either free locally (over the air): Or free on the Internet: Plex TV Pluto TV P

    YouTube playlist Files downloaded by FDM are not organized according to the original order on YouTube

    Youtube-Playlist-File-Organizer YouTube playlist Files downloaded by Free Download Manager are not organized according to the original order on YouTub

    Youtube Music Playlist Organizer

    Youtube Music Playlist Organizer, a simple Python application that uses ytmusicapi to help user edit their playlists and organize in other playlists.

    Web app for spotify playlist management with last.fm integration
    Web app for spotify playlist management with last.fm integration

    Music Tools Set of utility tools for Spotify and Last.fm. Built on my other libraries for Spotify (spotframework), Last.fm (fmframework) and interfaci

    Total time of all YouTube videos in a playlist.

    Youtube Playlist Total Times Total time of all YouTube videos in a playlist. How to Use Download chromedriver depending on your os and chrome version

    PlaylistAudioBot - Telegram playlist download bot with ytdl

    Telegram PlaylistAudioBot PlaylistAudioBot: 🇬🇧 Telegram playlist download bot

    Spotify playlist anonymizer.

    Spotify heavily personalizes auto-generated playlists like Song Radio based on the music you've listened to in the past. But sometimes you want to listen to Song Radio precisely to hear some fresh songs outside of your habitual listening realm!

    The purpose of this bot is to take soundcloud track requests, that are posted in the stream-requests channel, and add them to a playlist, to make the process of scrolling through the requests easier for Root

    Discord Song Collector Dont know if anyone is actually going to read this, but the purpose of this bot is to check every message in the stream-request

    This Python script will automate the process of uploading your project to GitHub.

    ProjectToGithub This Python script will help you to upload your project to Github without having to type in any commands !!! Quick Start guide First C

    Owner
    shourya
    Learning stuff
    shourya
    Techie Sneh 19 Dec 3, 2021
    Converts a text file of songs to a playlist on your Spotify account.

    Playlist Converter Convert a text file of songs to a playlist on your Spotify account. Create your playlists faster instead of manually searching for

    Priya Aggarwal 18 Dec 21, 2022
    A GUI Application that creates a Spotify Playlist from any year in the past, by just entering your preferred date

    A GUI Application that creates a Spotify Playlist from any year in the past, by just entering your preferred date

    David .K. Danso 1 Jan 17, 2022
    Telegram Bot for saving and sharing personal and group notes

    EZ Notes Bot (ezNotesBot) Telegram Bot for saving and sharing personal and group notes. Usage Personal notes: reply to any message in PM to save it as

    Dash Eclipse 8 Nov 7, 2022
    Simple PoC script that allows you to exploit telegram's "send with timer" feature by saving any media sent with this functionality.

    Simple PoC script that allows you to exploit telegram's "send with timer" feature by saving any media sent with this functionality.

    Matteo 52 Nov 29, 2022
    null 4 Oct 28, 2021
    JAKYM, Just Another Konsole YouTube-Music. A command line based Youtube music player written in Python with spotify and youtube playlist support

    Just Another Konsole YouTube-Music Overview I wanted to create this application so that I could use the command line to play music easily. I often pla

    Mayank Jha 73 Jan 1, 2023
    A Python script to update Spotify Playlist data every 5 minutes.

    Spotify Playlist Updater A Python script to update Spotify Playlist data every 5 minutes. Description An automatic playlist updater using Spotify API

    null 6 Nov 24, 2022
    Telegram Voice Chat UserBot made with Pyrogram and MarshalX/tgcalls with playlist and Heroku support

    Telegram Voice Chat UserBot A Telegram UserBot to Play Audio in Voice Chats. This is also the source code of the userbot which is being used for playi

    Calls Music 164 Nov 12, 2022
    Generate direct m3u playlist for all the channels subscribed in the Tata Sky portal

    Tata Sky IPTV Script generator A script to generate the m3u playlist containing direct streamable file (.mpd or MPEG-DASH or DASH) based on the channe

    Gaurav Thakkar 250 Jan 1, 2023