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
    A Telegram bot to send messages in Telegram groups or Channels using bots anonymously.

    Group-chatting-bot A bot to send messeges to group using bot telegram bot ❤️ Support Made with Python3

    Pyrogramers 16 Nov 06, 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
    Reddit bot for r/khiphop

    khiphop-bot Description This project is a collection of scripts that better the state of the r/khiphop subreddit, which represents Korean Hip-Hop and

    1 Dec 21, 2021
    Python library for Seeedstudio Grove devices

    grove.py Python library for Seeedstudio Grove Devices on embeded Linux platform, especially good on below platforms: Coral Dev Board (Wiki) NVIDIA Jet

    Seeed Studio 123 Dec 17, 2022
    Just a python library to make reddit post caching easier

    Reddist Just a python library to make reddit post caching easier. Caching Options In Memory Caching Redis Caching Pickle Caching Usage Installation: D

    Samrid Pandit 3 Jan 16, 2022
    An Async Bot/API wrapper for Twitch made in Python.

    TwitchIO is an asynchronous Python wrapper around the Twitch API and IRC, with a powerful command extension for creating Twitch Chat Bots. TwitchIO co

    TwitchIO 590 Jan 03, 2023
    Vladilena Mirize Music - Bot Music Telegram By @zenfrans

    Vladilena Mirize Music - Bot Music Telegram By @zenfrans

    Wahyusaputra 3 Feb 12, 2022
    Python client for Invidious' JSON API

    Python project template A template for new Python projects. Features Automatically builds PDoc documentation & uploads package to PyPI on new GitHub r

    Kevo 2 Jun 05, 2022
    Python Capfire API wrapper

    General CampfireAPI based on Campfire web. Install pip install Campfire-API Quickstart Use it without login: from campfire_api import CampfireAPI cf

    Ghost 0 Jan 03, 2022
    A Telegram Calculator to calculate your maths sums

    CalculatorBot A Telegram Calculator to calculate your maths sums! Made by /Team

    TeamOctave 2 Dec 31, 2021
    We have made you a wrapper you can't refuse

    We have made you a wrapper you can't refuse We have a vibrant community of developers helping each other in our Telegram group. Join us! Stay tuned fo

    20.6k Jan 04, 2023
    Simple VK API wrapper for Python

    VK Admier: documentation VK Admier is simple VK API wrapper for community bot development. Authorization You should create bot object from Client clas

    Egor Light 2 Nov 10, 2022
    WebhookHub - A discord WebHook Manager with much more features coming soon

    WebhookHub A discord WebHook Manager with much more features coming soon This is

    5 Feb 19, 2022
    AnyAPI is a library that helps you to write any API wrapper with ease and in pythonic way.

    AnyAPI AnyAPI is a library that helps you to write any API wrappers with ease and in pythonic way. Features Have better looking code using dynamic met

    Fatih Kilic 129 Sep 20, 2022
    An unoffcial python API client for primeuploads.com

    primeuploads-py An unoffcial python API wrapper for primeuploads.com Installation pip3 install primeuploads-py Usage example from prime import PrimeUp

    W4RR10R 41 Dec 05, 2022
    Python client and module for BGP Ranking

    Python client and module for BGP Ranking THis project will make querying BGP Ranking easier. Installation pip install pybgpranking Usage Command line

    D4 project 3 Dec 16, 2021
    Python-based Snapchat score booster using pyautogui module

    Snapchat Snapscore Botter Python-based Snapchat score booster using pyautogui module. Click here to report bugs. Usage Download ZIP here and extract t

    477 Dec 31, 2022
    🚀 An asynchronous python API wrapper meant to replace discord.py - Snappy discord api wrapper written with aiohttp & websockets

    Pincer An asynchronous python API wrapper meant to replace discord.py ❗ The package is currently within the planning phase 📌 Links |Join the discord

    Pincer 125 Dec 26, 2022
    A powerfull Telegram Leech Bot

    owner of this repo :- Abijthkutty contact me :- Abijth Telegram Torrent and Direct links Leecher Dont Abuse The Repo ... this is intented to run in Sm

    αвιנтн 9 Jun 11, 2022
    Visualização de dados do TaxiGov.

    Visualização de dados do TaxiGov Este repositório apresenta uma visualização das corridas de táxi do programa TaxiGov do governo federal, realizadas n

    Ministério da Economia do Brasil 5 Dec 20, 2022