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
    Apprise - Push Notifications that work with just about every platform!

    ap·prise / verb To inform or tell (someone). To make one aware of something. Apprise allows you to send a notification to almost all of the most popul

    Chris Caron 7.2k Jan 07, 2023
    An API that allows you to get full information about TikTok videos

    TikTok-API An API that allows you to get full information about TikTok videos without using any third party sources and only the TikTok API. ##API onl

    FC 13 Dec 20, 2021
    A collection of scripts to steal BTC from Lightning Network enabled custodial services. Only for educational purpose! Share your findings only when design flaws are fixed.

    Lightning Network Fee Siphoning Attack LN-fee-siphoning is a collection of scripts to subtract BTC from Lightning Network enabled custodial services b

    Reckless_Satoshi 14 Oct 15, 2022
    A simple bot discord in PY with moderation controls

    Voila un bot discord en py avec les commandes simples de modération tout simplement faut changer les lignes 70 vous mettez votre token de votre bot 53

    Ethan 1 Nov 20, 2021
    Twitch Linux Typer

    Twitch Linux Typer The most cursed Twitch chat bot Listens to twitch chat, and then types it handles hotkeys and button presses via the ^ char, eg ctr

    Robin Universe 4 Jun 27, 2022
    A suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray, structured logging and creating custom metrics asynchronously easier

    A suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray, structured logging and creating custom metrics asynchronously easier

    Amazon Web Services - Labs 1.9k Jan 07, 2023
    Bot per controllare la disponibilità di appuntamenti per la vaccinazione Covid-19 in Veneto

    VaxBot9000 Prerequisites Python 3.9 Poetry latest version of geckodriver Firefox Setup poetry install Copy config.sample.toml to config.toml and edit

    Augusto Zanellato 5 Jun 13, 2021
    A clean, easy to scale discord bot template

    A clean, easy to scale discord bot template. Develope using nextcord library and can be use with any other discord.py forked library.

    めがねこ 3 Mar 03, 2022
    Is the CoWin website updated for registration?

    CoWin-Update Is the CoWin website updated for registration? This is a very hacky PYTHON3 script to lookup the CoWin portal if they re-deployed their J

    Yash Jakhotiya 5 May 10, 2021
    Create Basic ERC20 token with Solidity, Brownie and Python

    Create Basic ERC20 token with Solidity, Brownie and Python Demo Check out Cornell Token on Rinnkeby network with Etherscan. Installation Install brown

    Ethan Huang 2 Feb 16, 2022
    Tglogging - A python package to send your app logs to a telegram chat in realtime

    Telegram Logger A simple python package to send your app logs to a telegram chat

    SUBIN 60 Dec 27, 2022
    Cogs for Red-DiscordBot

    Redbot cogs for Red-DiscordBot authored by Kreusada This is my repository for Red Discord-Bot. I built these cogs because these were the features that

    Kreus Amredes 26 Nov 07, 2022
    wyscoutapi is an extremely basic API client for the Wyscout API (v2 & v3) for Python

    wyscoutapi wyscoutapi is an extremely basic API client for the Wyscout API (v2 & v3). Usage Install with pip install wyscoutapi. To connect to the Wys

    Ben Torvaney 11 Nov 22, 2022
    Yuichixspam - TLEEGRAM SPAM BOT For Python

    𝒀𝑼𝑰𝑪𝑯𝑰 ✘ 𝑺𝑷𝑨𝑴 𝑩𝑶𝑻ノ 🚀 Deploy on Heroku (https://heroku.com/deploy?t

    MOHIT X PANDIT 6 Jan 30, 2022
    Repository to access information of stocks in Bombay Stock Exchange.

    BSE Repository to access information of stocks in Bombay Stock Exchange. The code in this repository uses BSE API and conclusions made using the code

    1 Nov 13, 2021
    This is a open source discord bot project

    pythonDiscordBot This is a open source discord bot project #based on the MAX A video: https://www.youtube.com/watch?v=jHZlvRr9KxM Prerequisites Python

    Edson Holanda Teixeira Junior 3 Oct 11, 2021
    A template that everyone can use for the start of their discord bot

    Python Discord Bot Template This repository is a template that everyone can use for the start of their discord bot. When I first started creating my d

    2 Nov 01, 2021
    Basic Discord python bot

    #How to Create a Discord Bot Account In order to work with the Python library and the Discord API, we must first create a Discord Bot account. Here ar

    Tustus 1 Oct 13, 2021
    This Mirror Bot is a multipurpose Telegram Bot writen in Python for mirroring files on the Internet to our beloved Google Drive.

    MIRROR HUNTER This Mirror Bot is a multipurpose Telegram Bot writen in Python for mirroring files on the Internet to our beloved Google Drive. Repo la

    anime republic 130 May 28, 2022
    Security Monkey monitors AWS, GCP, OpenStack, and GitHub orgs for assets and their changes over time.

    NOTE: Security Monkey is in maintenance mode and will be end-of-life in 2020. For AWS users, please make use of AWS Config. For GCP users, please make

    Netflix, Inc. 4.3k Jan 09, 2023