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
    The Main Pythonic Version Of Twig Using Nextcord

    The Main Pythonic Version Of Twig Using Nextcord

    8 Mar 21, 2022
    “ Hey there 👋 I'm Daisy „ AI based Advanced Group Management Bot Suit For All Your Needs ❤️.. Source Code of @Daisyxbot

    Project still under heavy development Everything will be changed in the release “ Hey there 👋 I'm Daisy „ AI based Advanced telegram Group Management

    TeamDaisyX 43 Nov 12, 2022
    Python Client for Instagram API

    This project is not actively maintained. Proceed at your own risk! python-instagram A Python 2/3 client for the Instagram REST and Search APIs Install

    Facebook Archive 2.9k Dec 30, 2022
    Jupyter notebooks and AWS CloudFormation template to show how Hudi, Iceberg, and Delta Lake work

    Modern Data Lake Storage Layers This repository contains supporting assets for my research in modern Data Lake storage layers like Apache Hudi, Apache

    Damon P. Cortesi 25 Oct 31, 2022
    LHXP・Official "LH - Cyber Security" Discord Leveling-Bot

    LHXP・Official "LH - Cyber Security" Discord Leveling-Bot Based on nsde/NOVΛLIX Feature Overview /clear @user Requires admin permission Purges all XP

    Felix・onlix 2 Mar 09, 2022
    Track live sentiment for stocks from Reddit and Twitter and identify growing stocks

    Market Sentiment About This repository can mainly be used for two things. a. Tracking the live sentiment of stocks from Reddit and Twitter b. Tracking

    Market Sentiment 345 Dec 17, 2022
    Yes, it's true :revolving_hearts: This repository has 301 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 serv

    510 Dec 28, 2022
    🔍 📊 Look up information about anime, manga and much more directly in Discord!

    AniSearch The source code of the AniSearch Discord Bot. Contribute You have an idea or found a bug? Open a new issue with detailed explanation. You wa

    私はレオンです 19 Dec 07, 2022
    A simple python discord bot with commands for moderation and utility.

    Discord Bot A simple python discord bot with commands for moderation, utility and fun. Moderation $kick user reason - Kick a user from the server

    3 Jan 07, 2022
    Web3 Pancakeswap Sniper & honeypot detector Take Profit/StopLose bot written in python3, For ANDROID WIN MAC & LINUX

    Pancakeswap BSC Sniper Bot web3 with honeypot detector (ANDROID WINDOWS MAC LINUX) First SNIPER BOT for ANDROID with honeypot detector Web3 Pancakeswa

    HYDRA 1 Dec 23, 2021
    A pypi package that helps in generating discord bots.

    A pypi package that helps in generating discord bots.

    PineCode Corp 3 Nov 17, 2021
    Dribble sign up screen built in python and kivy

    Dribble sign up screen built in python and kivy contains Dribble icon with icon position and shadow animation.

    1 Dec 06, 2021
    Home Assistant custom integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, officially maintained by the Tuya Developer Team.

    Tuya Home Assistant Integration Home Assistant custom integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, officially mainta

    Tuya 704 Jan 03, 2023
    this is a telegram torrent bot

    owner of this repo :- AYUSH contact me :- AYUSH Slam Mirror Bot This is a telegram bot writen in python for mirroring files on the internet to our bel

    AYUSH 237 Dec 16, 2021
    This Code is Property of Rehyann Saini. Feel Free to use this Project.

    Email-Spammer Rehyann Saini in Collabration With Fe13 Productions This is an easy to use Dev Friendly Email spammer... #Important Things to know..! St

    Rehyann Saini 1 Jan 14, 2022
    A telegram bot for generate fake details. Written in python using telethon

    FakeDataGenerator A telegram bot for generate fake details. Written in python using telethon. Mandatory variables API_HASH Get it from my telegram.org

    Oxidised-Man 6 Dec 19, 2021
    Asynchronous Python API Wrapper for phisherman.gg

    Asynchronous Python API Wrapper for phisherman.gg

    Qrista Labs 4 Apr 30, 2022
    An open source raffle bot made to increase the chance of winning limited sneaker raffles by automating entries.

    🚀 SyneziaRaffles An open source raffle bot made to increase the chance of winning limited sneaker raffles by automating entries. 🏄‍♂️ Quick Start Pr

    Alexis M. 29 Dec 22, 2022
    Unofficial instagram API, give you access to ALL instagram features (like, follow, upload photo and video and etc)! Write on python.

    Instagram-API-python Unofficial Instagram API to give you access to ALL Instagram features (like, follow, upload photo and video, etc)! Written in Pyt

    Vladimir Bezrukov 1 Nov 19, 2021
    Receive GitHub webhook events and send to Telegram chats with AIOHTTP through Telegram Bot API

    GitHub Webhook to Telegram Receive GitHub webhook events and send to Telegram chats with AIOHTTP through Telegram Bot API What this project do is very

    Dash Eclipse 33 Jan 03, 2023