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
    API de mi aplicación de Biblioteca

    BOOKSTORE API Instalación/Configuración Previo Es una buena idea crear un entorno virtual antes de instalar las dependencias. Puedes hacerlo con el si

    Gabriel Morales 1 Jan 09, 2022
    A tool that ensures consistent string quotes in your Python code.

    pyquotes Single quotes are superior. And if you disagree, there's an option for this as well. In any case, quotes should be consistent throughout the

    Adrian 9 Sep 13, 2022
    Fetch tracking numbers of Amazon orders, for the ease of the logistics.

    Amazon-Tracking-Number Fetch tracking numbers of Amazon orders, for the ease of the logistics. Read Me First (How to use this code): Get Amazon "Items

    Tony Yao 1 Nov 02, 2021
    Python wrapper for WhatsApp web-based on selenium

    alright Python wrapper for WhatsApp web made with selenium inspired by PyWhatsApp Why alright ? I was looking for a way to control and automate WhatsA

    Jordan Kalebu 193 Jan 06, 2023
    A Python Script to scan through an Instagram account to find all the followers and followings.

    Instagram Followers Scan A Python Script to scan through an Instagram account to find all the followers and followings. You can also get filtered list

    Nityasmit Mallick 6 Oct 27, 2022
    Cutting-edge GitHub page customization tool

    Cutting-edge GitHub page customization tool Want to customize your GitHub user page, but don't know how? Now you can make your profile unique and attr

    Igor Vaiman 32 Aug 24, 2022
    A Discord Server Cloner With Lot Of New Features.

    Technologies Screenshots Table of contents About Installation Links Deployed Features Website Score Contribution Need Help? Instagram Discord About A

    NotSakshyam 25 Dec 31, 2022
    The implementation of Learning Instance and Task-Aware Dynamic Kernels for Few Shot Learning

    INSTA: Learning Instance and Task-Aware Dynamic Kernels for Few Shot Learning This repository provides the implementation and demo of Learning Instanc

    11 Jan 02, 2023
    SongFinder Bot helps you to find song name by recognising via voice note or instagram reels shared link.

    SongFinder V1.1 SongFinder to detect songs name by just sending voice note or instagram reels links to your telegram bot. FFMPEG must be installed on

    Abhishek Pathak 4 Dec 30, 2022
    A simple Telegram bot which handles images in whole different way

    zeroimagebot thezeroimagebot 🌟 I Can Edit Dimension Of An image which is required by @stickers 🌟 I Can Extract Text From An Image 🌟 !!! New Updates

    RAVEEN KUMAR 4 Jul 01, 2021
    The worst but simplest webhook bot for GitHub and Matrix.

    gh-bot gh-bot is maybe the worst (but simplest) Matrix webhook bot for Github. Example of commits: Example of workflow finished: Setting up Server You

    Jae Lo Presti 4 Aug 18, 2022
    Client to allow skytrack to be used with GSPro Golf simulator application

    Skytrack Interface for GSPro A Basic Interface connection from Skytrack Launch Monitors to be able to play simulator golf via GSPro About The Project

    James Peruggia 2 Oct 24, 2021
    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
    A simple url uploader bot with permenent thumbnail support

    URL-Uploader A simple url uploader bot with permenent thumbnail support Scrapped some code from @SpEcHIDe's AnyDLBot Repository Please fork this repos

    Fayas Noushad 40 Nov 29, 2021
    Simple Telegram AI Chat bot made using OpenAI and Luna API

    Yui Yui, is a simple telegram chat bot made using OpenAI and Luna Chat bot Deployment 👀 Deploying is easy 🤫 ! You can deploy this bot in Heroku or i

    I'm Not A Bot #Left_TG 21 Dec 29, 2022
    A simple, fast, and awesome discord nuke bot! The only thing you need to add is your bot token.

    SimpleNukeBot A simple, fast, and awesome discord nuke bot! The only thing you need to add is your bot token. Instructions: All you need to do is crea

    Bisc 1 Apr 18, 2022
    Discord bot do sprawdzania ceny pizzy.

    Discord bot do sprawdzania ceny pizzy w pizzeri Bombola. Umieszczony jest na platformie Heroku, dzięki czemu działa 24/7. Commands List Info: Jako com

    1 Sep 18, 2021
    GTK3-based panel for sway window manager

    nwg-panel I have been using sway since 2019 and find it the most comfortable working environment, but... Have you ever missed all the graphical bells

    Piotr Miller 290 Jan 07, 2023
    A collection of tools for managing Jira issues for the RHODS project

    RHODS-Jira-Tools A collection of tools for managing Jira issues for the RHODS project move_to_qa.py This script handles transitioning a given Jira iss

    Alex Corvin 1 Sep 20, 2022
    Unlimited Filter Bot

    Unlimited Filter Bot The Orginel Owner Of This Repo Is ㅤㅤㅤㅤㅤㅤㅤ ㅤㅤㅤㅤㅤㅤㅤ An advanced Filter Bot with nearly unlimitted filters! Features Nearly unlimite

    4 Aug 02, 2022