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
    See trending stock tickers on Reddit and check Stock perfomance

    See trending stock tickers on Reddit and check Stock perfomance

    Abbas 1.5k Jan 06, 2023
    A Chip-8 emulator written using Python's default libraries

    Chippure A Chip-8 emulator written using Python's default libraries. Instructions: Simply launch the .py file and type the name of the Chip8 ROM you w

    5 Sep 27, 2022
    This is an Advanced Calculator maybe with Discord Buttons in python.

    Welcome! This is an Advanced Calculator maybe with Discord Buttons in python. This was the first version of the calculator, made for my discord bot, P

    Polsulpicien 18 Dec 24, 2022
    A telegram media to pixeldrain stream link bot

    Pixeldrain-Bot A telegram media to pixeldrain stream link bot Made with Python3 (C) @FayasNoushad Copyright permission under MIT License License - ht

    Fayas Noushad 11 Oct 21, 2022
    A discord bot that send SMS spam!

    bruh-bot send spam sms! send spam with email! it sends you spam via sms and Email using two tools, quack and impulse! if you have some problem contact

    pai 32 Dec 25, 2022
    Python notebook allows send bulk whatsapp messages to contacts (not necessarily saved) using an excel file and the selenium package. It also produces a final report on the sending status of the messages.

    WhatsApp messages bulk sending đź“© Este notebook (python) te permite enviar mensajes masivos de WhatsApp. El insumo principal es una hoja excel que con

    Braulio Arteaga Lescano 8 Sep 15, 2022
    Auslesen, entschlĂĽsseln und parsen von Smart Meter Telegrammen

    Netz-NĂ– SmartMeter-P1-Reader https://www.netz-noe.at/Download-(1)/Smart-Meter/218_9_SmartMeter_Kundenschnittstelle_lektoriert_14.aspx Dieses Skript en

    3 Jan 14, 2022
    Bot for Telegram data Analysis

    Bot Scraper for telegram This bot use an AI to Work powered by BOG Team you must do the following steps to make the bot functional: Install the requir

    8 Nov 28, 2022
    Automatically updates the twitter banner with the images of 5 latest followers, using tweepy python

    Auto twitter banner Automatically updates the twitter banner every few seconds with follower profile pics on it Here's how it looks! Installation git

    Dhravya Shah 7 Jul 04, 2022
    A telegram bot to interact with a Minecraft Server

    telegram-mc-bot A telegram bot to interact with a Minecraft Server It has the following commands: /status - Returns the server status (Online/Offline)

    KleynArt 1 Dec 09, 2021
    ZenML 🙏: MLOps framework to create reproducible ML pipelines for production machine learning.

    ZenML is an extensible, open-source MLOps framework to create production-ready machine learning pipelines. It has a simple, flexible syntax, is cloud and tool agnostic, and has interfaces/abstraction

    ZenML 2.6k Dec 27, 2022
    =>|<= the MsgRoom bot for Windows 96

    =|= bot A MsgRoom bot in Python 3 for Windows96.net. The bot joins as =|=, if parameter name_lasts is not true and default_name is =|=. The full

    Larry Holst 2 Jun 07, 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
    Use PyTgCalls easier than before.

    PyTgCalls wrapper Making it easier for you to use pytgcalls. Features No need to care about audio convertion. Play directly from URLs, YouTube and loc

    Calls Music 12 Jul 21, 2022
    Stackoverflow Telegram Bot With Python

    Template for Telegram Bot Template to create a telegram bot in python. How to Run Set your telegram bot token as environment variable TELEGRAM_BOT_TOK

    PyTopia 10 Mar 07, 2022
    Discord Mass Edit is a unique, purging related Discord tool that differs from the regular mass delete.

    Discord Mass Edit is a unique, purging related Discord tool that differs from the regular mass delete. This tool will automatically edit every message in a chosen channel and change it to a random st

    c0mpt0 1 Jul 27, 2022
    A file-based quote bot written in Python

    Let's Write a Python Quote Bot! This repository will get you started with building a quote bot in Python. It's meant to be used along with the Learnin

    1 Feb 23, 2022
    A Discord Tool which checks for valid tokens and adds them to a server

    Discord-Server-Botter A Discord Tool which checks for valid tokens and adds them to a server Usage Choice 1 is for checking tokens Choice 2 is for add

    Bless 3 Jul 01, 2022
    Discord Bot written in Python that plays music in your voice channel

    Discord Bot that plays music! I decided to create a simple Discord bot using Python in order to advance my coding skills. Please don't ask me for help

    Eric Yeung 39 Jan 01, 2023
    Leveraged grid-trading bot using CCXT/CCXT Pro library in FTX exchange.

    Leveraged-grid-trading-bot The code is designed to perform infinity grid trading strategy in FTX exchange. The basic trader named Gridtrader.py contro

    Hao-Liang Wen 25 Oct 07, 2021