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
    Rust UserBot, Telegram istifadษ™sini asanlaลŸdฤฑran bir proyektdir.

    RUST USERBOT ๐Ÿ‡ฆ๐Ÿ‡ฟ Rust UserBot, Telegram istifadษ™sini asanlaลŸdฤฑran bir proyektdir. Qurulum Heroku Serverษ™ qurulum git clone https://github.com/rustres

    1 Oct 25, 2021
    a Music bot for discord

    Bot this is a discord bot made by AnHalfGuy.py#6031(ID: 747864072879603743) and HastagStopAnimalAbuse#5617(ID :349916852308279306) This Bot Is For Mus

    A Discord Bot Development 1 Oct 29, 2021
    Discord Mass Edit is a unique, purging related Discord tool that differs from the regular mass delete.

    Discord Mass Edit is a unique, purging related Discord tool that differs from the regular mass delete. This tool will automatically edit every message in a chosen channel and change it to a random st

    c0mpt0 1 Jul 27, 2022
    Backend for Indipe client

    Betsushi Betsu (ๅˆฅ), the japanese word meaning "another" and Shiharai (ๆ”ฏๆ‰•ใ„) meaning "payment". Hence the name Betsushi was derived. Introduction This i

    Sudodevs 3 Feb 09, 2022
    HackZ-Token-Grabber-V2 - HackZ Token Grabber V2

    HackZ-Token-Grabber-V2 was made by Love โŒ code โœ… โ€Ž โ€Ž โ€Ž โ€Ž โ€Ž โ€Ž โ€Ž โ€Ž โ€Ž โ€Ž โ€Ž โ€Ž โ€Ž โ€Ž ๐ŸŒŸ

    ! โ„ขNightMare 2 Mar 01, 2022
    Prime Mega is a modular bot running on python3 with autobots theme and have a lot features.

    PRIME MEGA Prime Mega is a modular bot running on python3 with autobots theme and have a lot features. Easiest Way To Deploy On Heroku This Bot is Cre

    ใ€ŽTร˜NICใ€ ไน‚ โ‚ญILLฮฃR 45 Dec 15, 2022
    An API wrapper around the pythonanywhere's API.

    pyaww An API wrapper around the pythonanywhere's API. The name stands for pythonanywherewrapper. 100% API coverage Most of the codebase is documented

    7 Dec 11, 2022
    A simple Telegram bot that converts a phone number to a direct whatsapp chat link

    Open in WhatsApp I was using a great app to open a whatsapp chat with a given number directly without saving that number in my contact list, but I fel

    Pathfinder 19 Dec 24, 2022
    nuub-bot is a multi-purpose designed and developed in python3

    nuub-bot About Nuub-Bot is an open source, fully customizable Discord bot that is constantly growing. You can invite it to your Discord server using t

    Baneet Parmar 8 Jun 28, 2022
    Exports saved posts and comments on Reddit to a csv file.

    reddit-saved-to-csv Exports saved posts and comments on Reddit to a csv file. Columns: ID, Name, Subreddit, Type, URL, NoSFW ID: Starts from 1 and inc

    70 Jan 02, 2023
    A wrapper for aqquiring Choice Coin directly through a Python Terminal. Leverages the TinyMan Python-SDK.

    CHOICE_TinyMan_Wrapper A wrapper that allows users to acquire Choice Coin directly through their Terminal using ALGO and various Algorand Standard Ass

    Choice Coin 16 Sep 24, 2022
    An API wrapper around Discord API.

    NeoCord This project is work in progress not for production use. An asynchronous API wrapper around Discord API written in Python. Features Modern API

    Izhar Ahmad 14 Jan 03, 2022
    Trellox Tool is written in Python3 and designed to pull and list Trello boards.

    TrelloX Trellox Tool is written in Python3 and designed to list and pull Trello boards. It can be used by penetration testers/bug bounty hunters to de

    Ali Fathi Ali Sawehli 1 Dec 05, 2021
    SimpleTelegramScraper - A python script scrapes accounts from public groups via Telegram API and saves them in a CSV file

    SimpleTelegramScraper - the best scraper on GitHub This simple python script scr

    Deniz Shabani 12 Oct 06, 2022
    PyDiscord, a maintained fork of discord.py, is a python wrapper for the Discord API.

    discord.py A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. The Future of discord.py Please read the gi

    Omkaar 1 Jan 16, 2022
    A self-bot for discord, written in Python, which will send you notifications to your desktop if it detects an intruder on your discord server

    A self-bot for discord, written in Python, which will send you notifications to your desktop if it detects an intruder on your discord server

    LevPrav 1 Jan 11, 2022
    A discord bot that manages your server's hedge fund

    Can't Hide Money Bot A discord bot that manages your server's hedge fund Installing Install wkhtmltopdf sudo apt-get install wkhtmltopdf OR brew insta

    Kelvin Abrokwa-Johnson 0 Oct 16, 2021
    Python API wrapper library for Convex Value API

    convex-value-python Python API wrapper library for Convex Value API. Further Links: Convex Value homepage @ConvexValue on Twitter JB on Twitter Authen

    Aaron DeVera 2 May 11, 2022
    Balanced API library in python.

    Balanced Online Marketplace Payments v1.x requires Balanced API 1.1. Use v0.x for Balanced API 1.0. Installation pip install balanced Usage View Bala

    Balanced 70 Oct 04, 2022