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
    Crypto Signal Provider - A web application that allows users to select a cryptocurrency

    Crypto_Signal_Provider This is a web application that allows users to select a c

    Raul 2 Dec 11, 2022
    This is a cryptocurrency trading bot that analyses Reddit sentiment and places trades on Binance based on reddit post and comment sentiment. If you like this project please consider donating via brave. Thanks.

    This is a cryptocurrency trading bot that analyses Reddit sentiment and places trades on Binance based on reddit post and comment sentiment. The bot f

    Andrei 157 Dec 15, 2022
    Python library for using SMS.ir web services

    smsir smsir is a Python library for using SMS web services www.sms.ir Installation Use the package manager pip to install smsir. pip install smsir Usa

    mohammad reza 2 Oct 14, 2022
    Repository for the IPvSeeYou talk at Black Hat 2021

    IPvSeeYou Geolocation Lookup Tool Overview IPvSeeYou.py is a tool to assist with geolocating EUI-64 IPv6 hosts. It takes as input an EUI-64-derived MA

    57 Nov 08, 2022
    Univerity-student oriented (lithuanian) discord bot

    Univerity-student oriented (lithuanian) discord bot

    3 Nov 30, 2021
    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 written in Python to automate attending classes on MyClass (Codetantra).

    codetantrabot This is python program to attend class on myclass(codetantra) Prerequisites You should have Python3 and Pip installed on your system Run

    Aniket Kumar 1 Feb 08, 2022
    Telegram RAT written in Python

    teleRAT Python based RAT that uses Telegram for sending commands and receiving data to and from a victim computer. Setup.py Insert your API key into t

    96 Jan 01, 2023
    A discord nuking tool made by python, this also has nuke accounts, inbuilt Selfbot, Massreport, Token Grabber, Nitro Sniper and ALOT more!

    Disclaimer: Rage Multi Tool was made for Educational Purposes This project was created only for good purposes and personal use. By using Rage, you agr

    †† 50 Jul 19, 2022
    A simple Python API wrapper for Cloudflare Stream's API.

    python-cloudflare-stream A basic Python API wrapper for working with Cloudflare Stream. Arbington.com started off using Cloudflare Stream. We used the

    Arbington 3 Sep 08, 2022
    A Recommendation System For Diabetes Detection And Treatment

    Diabetes-detection-tg-bot A Recommendation System For Diabetes Detection And Treatment Данная система помогает определить наличие или отсутствие сахар

    Alexander Kanonirov 1 Nov 22, 2021
    Bezlik Year Calendar Planner

    Bezlik Year Calendar Planner Scribus script for creating year planners on one page A1 paper format. Script is based on Year-Calendar-Script-for-Scribu

    Bohdan Bobrowski 2 May 24, 2022
    Video-Player - Telegram Music/ Video Streaming Bot Using Pytgcalls

    Video Player 🔥 ᴢᴀɪᴅ ᴠᴄ ᴘʟᴀyᴇʀ ɪꜱ ᴀ ᴛᴇʟᴇɢʀᴀᴍ ᴘʀᴏᴊᴇᴄᴛ ʙᴀꜱᴇᴅ ᴏɴ ᴘʏʀᴏɢʀᴀᴍ ꜰᴏʀ ᴘʟᴀʏ

    Zaid 16 Nov 30, 2022
    The official wrapper for spyse.com API, written in Python, aimed to help developers build their integrations with Spyse.

    Python wrapper for Spyse API The official wrapper for spyse.com API, written in Python, aimed to help developers build their integrations with Spyse.

    Spyse 15 Nov 22, 2022
    Autodrive is designed to make it as easy as possible to interact with the Google Drive and Sheets APIs via Python

    Autodrive Autodrive is designed to make it as easy as possible to interact with the Google Drive and Sheets APIs via Python. It is especially designed

    Chris Larabee 1 Oct 02, 2021
    KiKi bare dogs can share your joys and sorrows with you.

    Kiki-FangLee-DiscordBot KiKi bare dogs can share your joys and sorrows with you. $help: Kiki will show you my talent, aw-aw. $list: Show Kiki's knowle

    Fang Lee 0 Feb 12, 2022
    A discord bot that can detect Nitro Scam Links and delete them to protect other users

    A discord bot that can detect Nitro Scam Links and delete them to protect other users. Add it to your server from here.

    Kanak Mittal 9 Oct 20, 2022
    🧑‍💼 Python wrapper for the Seek API

    seek-com-au-api 🧑‍💼 Python wrapper for the seek.com.au API (unofficial) Installation Using Python = 3.6: pip install -e git+https://github.com/tomq

    Tom Quirk 1 Oct 24, 2021
    The Bot provide Hadith API and fetch content via api.hadith.sutanlab.id

    Bot Hadith-API on Telegram The Bot provide Hadith API and fetch content via api.hadith.sutanlab.id Built With Python Asynchronous HTTP protocol client

    xMan 12 Feb 19, 2022
    Discord bot developed by Delhi University Student Community!

    DUSC-Bot Discord bot developed by Delhi University Student Community! Libraries Used Pycord - Documentation Features Can purge messages in bulk Drop-D

    professor 1 Jan 29, 2022