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
    alpaca-trade-api-python is a python library for the Alpaca Commission Free Trading API.

    alpaca-trade-api-python is a python library for the Alpaca Commission Free Trading API. It allows rapid trading algo development easily, with support for both REST and streaming data interfaces

    Alpaca 1.5k Jan 09, 2023
    🛒 Bot de lista de compras compartilhada para o Telegram

    Lista de Compras Lista de compras de Cuducos e Flávia. Comandos do bot Comando Descrição /add item Adiciona item à lista de compras /remove item

    Eduardo Cuducos 4 Jan 15, 2022
    This is a small package to interact with the OpenLigaDB API.

    OpenLigaDB This is a small package to interact with the OpenLigaDB API. Installation Run the following to install: pip install openligadb Usage from o

    1 Dec 31, 2021
    Asynchronous wrapper для Gismeteo.ru.

    aiopygismeteo Асинхронная обёртка для Gismeteo.ru. Синхронная версия здесь. Установка python -m pip install -U aiopygismeteo Документация https://aiop

    Almaz 6 Dec 08, 2022
    Open API to list Viet Nam administrative divisions

    Viet Nam province API Homepage: https://provinces.open-api.vn This is online tool to let my VietnamProvinces library reach more users. VietnamProvince

    Nguyễn Hồng Quân 52 Dec 05, 2022
    The source code of the bot that displays erotic images on Discord

    説明 このコードはDiscord.pyとNeko APIを使ったNsfw画像表示ボットのソースコードです。 成人向けコンテンツを含むボットなので、不快になる方はこのボットの作成中止をおすすめします。 使い方 まず、install.batを起動してください。 そのあとに、config.json を開き

    はなくそ 1 Dec 28, 2021
    Twitch Points Miner for multiple accounts with Discord logging

    Twitch Points Miner for multiple accounts with Discord logging Creator of the Twitch Miner -- PLEASE NOTE THIS IS PROBABLY BANNABLE -- Made on python

    8 Apr 27, 2022
    Short Program using Transavia's API to notify via email an user waiting for a flight at special dates and with the best price

    Flight-Notifier Short Program using Transavia's API to notify via email an user waiting for a flight at special dates and with the best price Algorith

    Wassim 2 Apr 10, 2022
    This repository are used to give class about AWS

    AWSTraining This repository are used to give class about AWS by Marco Antonio Pereira Linkedin: https://www.linkedin.com/in/marcoap To see the types o

    Marco Antonio Pereira 6 Nov 23, 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
    Bitcoin-chance-wheel - Try your luck at getting bitcoins

    Program Features - ✍️ Why did we name this tool the Lucky Wheel? - ✍️ This tool

    hack4lx 20 Dec 22, 2022
    AWS EC2 S3 Automated With python

    AWS_EC2_S3_Automated Description This programme is a Python3 script that utilizes Boto3 to automate the process of creating an AWS EC2 instance with a

    niall_crowe 2 Nov 16, 2021
    Send pm to Admin - Telegram

    Send pm to Admin - Telegram

    Ahoora 3 Nov 17, 2022
    Yes, it's true :yellow_heart: This repository has 326 stars.

    Yes, it's true! Inspired by a similar repository from @RealPeha, but implemented using a webhook on AWS Lambda and API Gateway, so it's serverless! If

    510 Dec 28, 2022
    Simple Instagram Login Link Generator

    instagram-account-login Simple Instagram Login Link Generator Info Program generates instagram login links and you may get into someone´s thought the

    Kevin 5 Dec 03, 2022
    Personal Discord Python Bot based on Discord.py

    Personal Discord bot using the discord.py library by Rapptz

    2 Dec 14, 2022
    CRUD database for python discord bot developers that stores data on discord text channels

    Discord Database A CRUD (Create Read Update Delete) database for python Discord bot developers. All data is stored in key-value pairs directly on disc

    Ankush Singh 7 Oct 22, 2022
    Modern, privacy-friendly, and detailed web analytics that works without cookies or JS.

    Modern, privacy-friendly, and cookie-free web analytics. Getting started » Screenshots • Features • Office Hours Motivation There are a lot of web ana

    R. Miles McCain 2.1k Jan 03, 2023
    ACL 2022: CAKE: A Scalable Commonsense-Aware Framework For Multi-View Knowledge Graph Completion

    CAKE ACL 2022: CAKE: A Scalable Commonsense-Aware Framework For Multi-View Knowledge Graph Completion Introduction This is the PyTorch implementation

    Niu Guanglin 31 Dec 07, 2022
    A python library for building user interfaces in discord.

    blurple.py A front-end framework for discord.py Blurple.py is a framework built on top of discord.py, giving you the tools you need to build discord b

    4 Oct 25, 2021