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
    IOGen - An Open source discord token generator

    _____ ____ _____ |_ _/ __ \ / ____| | || | | | |

    0xVichy#1234 85 Nov 03, 2022
    Discord CTF helper bot for CyberErudites

    Eruditus - CTF helper bot Eruditus - CTF helper bot About Eruditus is a Discord CTF helper bot built with Python, it was initially designed to be used

    Hafidh 34 Dec 30, 2022
    A tool written in Python used to instalock agents in VALORANT using the local API.

    Valorant Instalock Tool v2.1.0 by Mr. SOSA A tool written in Python used to instalock agents in VALORANT using the local API. This is NOT a hotkey pro

    Mr. SOSA 3 Nov 18, 2021
    A simple way to create a request to the coinpayment API with a valid HMAC using your private key and command

    Coinpayments Verify TXID Created for Astral Discord bot A simple way to create a request to the coinpayment API with a valid HMAC using your private k

    HellSec 1 Nov 07, 2022
    The best discord Nuk3r !

    Discord - Nuker ☢️ Nuk3r ☢️ STEP 1 ✅ We go create discord bot ! [] Go on https://discord.com/developers/applications [] Set the name of your applica

    2s.py 1 Apr 16, 2022
    Flood discord webhooks

    Webhook-Spammer Flood discord webhooks Asynchronous webhook spammer Fast & Efficient Usage - Use it with atleast 500 threads Put a valid webhook Use a

    trey 1 Apr 22, 2022
    This project checks the weather in the next 12 hours and sends an SMS to your phone number if it's going to rain to remind you to take your umbrella.

    RainAlert-Request-Twilio This project checks the weather in the next 12 hours and sends an SMS to your phone number if it's going to rain to remind yo

    9 Apr 15, 2022
    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 file-based quote bot written in Python

    Let's Write a Python Quote Bot! This repository will get you started with building a quote bot in Python. It's meant to be used along with the Learnin

    1 Dec 07, 2021
    An interactive App to play with Spotify data, both from the Spotify Web API and from CSV datasets.

    An interactive App to play with Spotify data, both from the Spotify Web API and from CSV datasets.

    Caio Lang 3 Jan 24, 2022
    A super awesome Twitter API client for Python.

    birdy birdy is a super awesome Twitter API client for Python in just a little under 400 LOC. TL;DR Features Future proof dynamic API with full REST an

    Inueni 259 Dec 28, 2022
    Telegram bot that let's you flip a coin in a dialog

    coin_flip Telegram bot that let's you flip a coin in a dialog Report issue · Request feature About Software development tool that lets you finally dec

    Ivan Akostelov 2 Dec 12, 2021
    A python API wrapper for temp-mail.org

    temp-mail Python API Wrapper for temp-mail.ru service. Temp-mail is a service which lets you use anonymous emails for free. You can view full API spec

    Denis Veselov 91 Nov 19, 2022
    Telegram File to Link Fastest Bot , also used for movies streaming

    Telegram File Stream Bot ! A Telegram bot to stream files to web. Report a Bug | Request Feature About This Bot This bot will give you stream links fo

    Avishkar Patil 194 Jan 07, 2023
    A Python wrapper around the Twitter API.

    Python Twitter A Python wrapper around the Twitter API. By the Python-Twitter Developers Introduction This library provides a pure Python interface fo

    Mike Taylor 3.4k Jan 01, 2023
    LOL-banner - A discord bot that bans anybody playing league of legends

    LOL-banner A discord bot that bans anybody playing league of legends This bot ha

    bsd_witch 46 Dec 17, 2022
    Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

    Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

    SUBIN 449 Dec 27, 2022
    The gPodder podcast client.

    ___ _ _ ____ __ _| _ \___ __| |__| |___ _ _ |__ / / _` | _/ _ \/ _` / _` / -_) '_| |_ \ \__, |_| \___/\__,_\__,_\___|_| |_

    gPodder and related projects 1.1k Jan 04, 2023
    Multi-purpose bot made with discord.py

    PizzaHat Discord Bot A multi-purpose bot for your server! ℹ️ • Info PizzaHat is a multi-purpose bot, made to satisfy your needs, as well as your serve

    DTS 28 Dec 16, 2022
    Python package for agilex robotics mobile base platform

    This is Python API for Agilex Robotics Mobile base This is a python API for Can communication with Agilex Robotics Mobile base and controlling it. Sup

    7 Sep 06, 2022