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 python API wrapper for temp-mail.org

    temp-mail Python API Wrapper for temp-mail.ru service. Temp-mail is a service which lets you use anonymous emails for free. You can view full API spec

    Denis Veselov 91 Nov 19, 2022
    Kakatua discord music bot

    Donate Ayo donasi! Lokal Internasional Ucapan Terima Kasih Tentu saja, donatur Bunga dan talent-talent h!mawari. Semoga rezeki teman-teman semakin lan

    1 Oct 30, 2021
    Cryptocurrency Trading Bot - A trading bot to automate cryptocurrency trading strategies using Python, equipped with a basic GUI

    Cryptocurrency Trading Bot - A trading bot to automate cryptocurrency trading strategies using Python, equipped with a basic GUI. Used REST and WebSocket API to connect to two of the most popular cry

    Francis 8 Sep 15, 2022
    Robust and blazing fast open-redirect vulnerability scanner with ability of recursevely crawling all of web-forms, entry points, or links with data.

    After Golismero project got dead there is no more any up to date open-source tool that can collect links with parametrs and web-forms and then test th

    railway zeppelin 34 Aug 25, 2022
    Simple Craigslist wrapper

    python-craigslist A simple Craigslist wrapper. License: MIT-Zero. Disclaimer I don't work for or have any affiliation with Craigslist. This module was

    Julio M. Alegria 370 Dec 22, 2022
    Bot telegram yang menggemakan pesan apa pun yang Anda kirim atau modifikasi untuk menganonimkan pesan

    Bot telegram yang menggemakan pesan apa pun yang Anda kirim atau modifikasi untuk menganonimkan pesan

    KEN KAN 2 Oct 21, 2022
    Pydapper - A pure python port of the NuGet library dapper

    pydapper A pure python library inspired by the NuGet library dapper. pydapper is

    Zach Schumacher 38 Jan 02, 2023
    Requests based multi-threaded script for increasing followers on Spotify

    Proxyless Spotify Follow Bot Requests based multi-threaded script for increasing followers on Spotify. Click here to report bugs. Usage Download ZIP h

    397 Jan 03, 2023
    Telegram bot/scraper to get the latest NUS vacancy reports.

    Telegram bot/scraper to get the latest NUS vacancy reports. Stay ahead of the curve and don't get modrekt.

    Chee Hong 1 Jan 08, 2022
    ✨ A Telegram mirror/leech bot By SparkXcloud Group ✨

    SparkXcloud-Gdrive-MirrorBot SparkXcloud-Gdrive-MirrorBot is a multipurpose Telegram Bot writen in Python for mirroring files on the Internet to our b

    119 Oct 23, 2022
    A simple fun discord bot using discord.py that can post memes

    A simple fun discord bot using discord.py * * Commands $commands - to see all commands $meme - for a random meme from the internet $cry - to make the

    Dice Flip 2 Dec 20, 2021
    Bezlik Year Calendar Planner

    Bezlik Year Calendar Planner Scribus script for creating year planners on one page A1 paper format. Script is based on Year-Calendar-Script-for-Scribu

    Bohdan Bobrowski 2 May 24, 2022
    A userbot made for telegram

    πšƒπ™·π™΄ π™Όπ™°π™΅π™Έπ™°π™±π™Ύπšƒ This is a userbot made for telegram. I made this userbot with help of all other userbots available in telegram. All credits go

    MafiaBotOP 8 Apr 08, 2022
    Monitoring plugin for MikroTik devices

    check_routeros - Monitoring MikroTik devices This is a monitoring plugin for Icinga, Nagios and other compatible monitoring solutions to check MikroTi

    DinoTools 6 Dec 24, 2022
    A fork of discord.py for anime enjoyers

    A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. Key Features Modern Pythonic API using async and await

    Senpai Development 4 Nov 05, 2021
    Fastest Tiktok Username checker on site.

    Tiktok Username Checker Fastest Tiktok Username checker on site

    sql 3 Jun 19, 2021
    a simple quant trading bot with CLI interface

    shepherd a simple quant trading bot with CLI interface CLI shell command docs coming soon after I brush up the code and add more features :) Minimal R

    m00n 0 Jun 06, 2022
    API para realizar parser de frases

    NLP API Simple api to parse and apply some preprocessing steps in portuguses phrases (pt_BR) This api uses the great FastAPI and spaCy packages! Usage

    ⟠ Rodolfo De Nadai 1 Dec 28, 2021
    A Flask inspired, decorator based API wrapper for Python-Slack.

    A Flask inspired, decorator based API wrapper for Python-Slack. About Tangerine is a lightweight Slackbot framework that abstracts away all the boiler

    Nick Ficano 149 Jun 30, 2022
    Tubee is a web application, which runs actions when your subscribed channel upload new videos

    Tubee is a web application, which runs actions when your subscribed channel upload new videos, think of it as a better IFTTT but built specifically for YouTube with many enhancements.

    Tomy Hsieh 11 Jan 01, 2023