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
    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
    GG Dorking is a tool to generate GitHub and Google dorking for pentesters and bug bounty hunters.

    GG-Dorking GG Dorking is a python tool to generate GitHub and Google dorking links for pentesters and bug bounty hunters. It will help you to find imp

    Eslam Akl 80 Nov 24, 2022
    Bootstrapping your personal Web3 info hub from more than 500 RSS Feeds.

    RSS Aggregator for Web3 (or 🥩 RAW for short) Bootstrapping your personal Web3 info hub from more than 500 RSS Feeds. What is RSS or Reader Services?

    ChainFeeds 1.8k Dec 29, 2022
    A discord bot that utilizes Google's Rest API for Calendar, Drive, and Sheets

    Bott This is a discord bot that utilizes Google's Rest API for Calendar, Drive, and Sheets. The bot first takes the sheet from the schedule manager in

    1 Dec 04, 2021
    Mini Tool to lovers of debe from eksisozluk (one of the most famous website -reffered as collaborative dictionary like reddit- in Turkey) for pushing debe (Most Liked Entries of Yesterday) to kindle every day via Github Actions.

    debe to kindle Mini Tool to lovers of debe from eksisozluk (one of the most famous website -refered as collaborative dictionary like reddit- in Turkey

    11 Oct 11, 2022
    A small discord bot to interface with python-discord's snekbox.

    A small discord bot to interface with python-discord's snekbox.

    Hassan Abouelela 0 Oct 05, 2021
    A VCVideoPlayer Bot for Telegram made with 💞 By @ProErrorXD

    VC Video Player How To Host ✨ Heroku Deploy ✨ The easiest way to deploy this Bot is via Heroku. Credit 🔥 |🇮🇳 Louis |🇮🇳 Sammy |🇮🇳 Blaze Marsha

    丂ムᄊᄊƳ 95 May 17, 2022
    A fast and expressive Craigslist API wrapper

    pycraigslist A fast and expressive Craigslist API wrapper. âš  As of September 2021, it is believed that Craigslist added a rate-limiter. It is advised

    Ira Horecka 24 Dec 28, 2022
    Tomli is a Python library for parsing TOML. Tomli is fully compatible with TOML v1.0.0.

    Tomli A lil' TOML parser Table of Contents generated with mdformat-toc Intro Installation Usage Parse a TOML string Parse a TOML file Handle invalid T

    Taneli Hukkinen 313 Dec 26, 2022
    buys ethereum based on graphics card moving average price on ebay

    ebay_trades buys ethereum based on graphics card moving average price on ebay Built as a meme, this application will scrape the first 3 pages of ebay

    ConnorCreate 41 Jan 05, 2023
    This bot will send you an email or notify you via telegram & discord if dolar/lira parity breaks a record.

    Dolar Rekor Kırdı Mı? This bot will send you an email or notify you via Telegram & Discord if Dolar/Lira parity breaks a record. Mailgun can be used a

    Yiğit Göktuğ Budanur 2 Oct 14, 2021
    A Wrapper for ScarletAPI

    ScarletAPI A Wrapper for ScarletAPI still a work in progress Docs these are the

    Amashi 0 Mar 24, 2022
    This bot will pull a stream of tweets based on rules you set and automatically reply to them.

    Twitter reply bot This bot will pull a stream of tweets based on rules you set and automatically reply to them. I built this bot in order to help comb

    Brains 1 Feb 13, 2022
    Man-Userbot adalah userbot Telegram modular yang berjalan di Python3 dengan database sqlalchemy

    Man-Userbot Telegram Man-Userbot adalah userbot Telegram modular yang berjalan di Python3 dengan database sqlalchemy. Berbasis Paperplane dan ProjectB

    DzLyz 1 Feb 12, 2022
    Wrapper for vk_api lib for faster bot buliding

    Welcome to VKBotPod repository! Wrapper for vk_api lib for faster bot buliding Features Simple syntax Rich functionality Special thanks to movpushmov

    NullPointerException 3 Jan 14, 2022
    Twitter Analysis of MIUUL CEO

    Twitter Analysis of MIUUL CEO Business Problem I got last @mvahitkeskin 184 twee

    Çağrı Karadeniz 6 Mar 12, 2022
    MemeBot - A discord bot that tracks how good people's memes are

    MemeBot A discord Meme "Karma" Tracking bot Dependancies Make sure you have pymongo installed and a mongodb cluster setup with two collections. pip in

    Uday Sharma 3 Aug 10, 2022
    Easy to use Google Pub/Sub

    Relé makes integration with Google PubSub straightforward and easy. Motivation and Features The Publish-Subscribe pattern and specifically the Google

    Mercadona 188 Jan 06, 2023
    a harbinger of events or things.

    Herald: Intrusion Detection System using IR and ML Herald - noun; a harbinger of events or things. Overview Herald is an intrusion detection system us

    Muhammad Muzzammil 4 Jun 07, 2021
    livestream-chat: Overlay para chats de livestreams

    livestream-chat Overlay para chats de livestreams. Inicialmente para rodar dentro do browser do obs-studio. TODO: Issues iniciais Suporte a API do You

    Eduardo Mendes 10 Dec 16, 2022