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
    Weather telegram bot with aiogram, on Russian language

    weather_bot Weather telegram bot with aiogram, on Russian language #RU Бот по определению погоды в Telegram, написана на библиотеке aiogram, весь инте

    LinkxWan 0 Jan 06, 2022
    ToqueIO Nuke tools - A collection of tools designed to assist in enhancing your workflows within nuke

    ToqueIO Nuke tools - A collection of tools designed to assist in enhancing your workflows within nuke

    4 Feb 19, 2022
    Código para trabalho com o dataset Wine em Python

    Um perceptron multicamadas (MLP) é uma rede neural artificial feedforward que gera um conjunto de saídas a partir de um conjunto de entradas. Um MLP é

    Hemili Beatriz 1 Jan 08, 2022
    Riverside Rocks Python API

    APIv2 Riverside Rocks Python API Routes GET / Get status of the API GET /api/v1/tor Get Tor metrics of RR family GET /api/v1/metrics Get bandwidth

    3 Dec 20, 2021
    PerrOS - The operating system for your discord server.

    PerrOS PerrOS is a Opensource Discord Bot to do it all! Installation Use the package manager pip to install the python3 requirements. pip3 install -r

    Webshort 2 Jun 20, 2022
    Набор утилит для Discord с использованием языка программирования Python.

    Discord Tools v0.1 Functions: WebHook spamer Spotify account generator (What?) QR Code Token stealer Token generator Discord nitro gen/check Discor to

    Максим Скризов 3 Aug 23, 2022
    A discord self bot that replies to messages using cleverbot

    cleverbot-discord-self A discord self bot that replies to messages using cleverbot Bot will respond to DMs and channels in the channels list. Need to

    0 Jan 11, 2022
    Roaster - this gui app + program bundle roasts.

    Roaster - this gui app + program bundle roasts.

    Harsh ADV) 1 Jan 04, 2022
    Discord-shell - Reverse shell accessible via discord.py bot

    Discord-shell reverse shell on discord bot. (STILL IN DEVELOPMENT) Installation

    Skultz 6 Oct 21, 2022
    A fully decentralized protocol for private transactions FAST snipe BUY token on LUANCH after add LIQUIDITY

    TORNADO CASH Pancakeswap Sniper BOT 2022-V1 (MAC WINDOWS ANDROID LINUX) ⭐️ A fully decentralized protocol for private and safe transactions ⭐️ AUTO DO

    Crypto Trader 2 Jan 06, 2022
    Repositório para meu Discord Bot pessoal

    BassetinhoBot Escrevi o código usando o Python 3.8.3 e até agora não tive problemas rodando nas versões mais recentes. Repositório para o Discord Bot

    Vinícius Bassete 1 Jan 04, 2022
    Hello i am TELEGRAM GROUP MANAGEMENT BOT MY NAME IS Evil-Inside ⚡ i have both amazing modules

    Evil-Inside DEMO BOT - Evil-Inside Hello i am TELEGRAM GROUP MANAGEMENT BOT MY NAME IS Evil-Inside ⚡ i have both amazing modules ℂ𝕆ℕ𝕋𝔸ℂ𝕋 𝕄𝔼 𝕆ℕ

    PANDITHAN 52 Nov 20, 2022
    Automatic generation of crypto-arts based on image layers

    NFT Generator Автоматическая генерация крипто-артов на основе слоев изображения. Установка pip3 install -r requirements.txt rm -rf result/* Как это ра

    Zproger 31 Dec 29, 2022
    CryptoBar - A simple MenuBar app that shows the price of 3 cryptocurrencies

    CryptoBar A very simple MenuBar app that shows the price of the following crypto

    4 Jul 04, 2022
    It's My Bot, For my group in telegram :)

    Get Start USage This robot is written in Python language for devdood Group in Telegram ... You can easily edit and use this source Edit and Run You ne

    Mohsen farzadmanesh 7 Sep 24, 2022
    This is a python wrapper for "the best api in the world"

    This is a python wrapper for my api api_url = "https://api.dhravya.me/" This wrapper now has async support, its basically the same except it uses asyn

    Dhravya Shah 3 Dec 21, 2021
    Scratch2py or S2py is a easy to use, versatile tool to communicate with the Scratch API Based of Scratch2py

    Scratch2py Scratch2py or S2py is a easy to use, versatile tool to communicate with the Scratch API Based of Scratch2py Installation Run this command i

    2 Jan 13, 2022
    Telegram Bot for generating and decoding QR-codes

    Telegram openqrgen_bot Telegram Bot that generates from user's messages and decodes QR-codes from photos. Also contains rickroll detection :) Just typ

    2 Nov 14, 2021
    Image captioning service for healthcare domains in Vietnamese using VLP

    Image captioning service for healthcare domains in Vietnamese using VLP This service is a web service that provides image captioning services for heal

    CS-UIT AI Club 2 Nov 04, 2021
    A Bot to get RealTime Tweets to a Specific Chats from Desired Persons on Twitter to Telegram Chat.

    TgTwitterStreamer A Bot to get RealTime Tweets to a Specific Chats from Desired Persons on Twitter to Telegram Chat. For Getting ENV's Refer this Link

    Anonymous 69 Dec 20, 2022