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
    Asynchronous python aria2 mirror bot Telegram.

    aioaria2-mirror-bot A Bot for Telegram made with Python using Pyrogram library. It needs Python 3.9 or newer to run. THIS BOT IS INTENDED TO BE USED O

    Adek 85 Jan 03, 2023
    This is a very simple botnet with a CnC server, made by me. Feel free to change anything

    This is a very simple botnet with a CnC server, made by me. Feel free to change anything

    8 Nov 12, 2022
    Campsite Reservation Cancellation Finder (Yellowstone National Park)

    yellowstone-camping yellowstone-camping is a Campsite Reservation Cancellation Finder for Yellowstone National Park. This simple Python application wi

    Justin Flannery 7 Aug 05, 2022
    Script to get a notification when a product, on Amazon Warehouse, is available within a target price

    Amazon_Warehouse_Scraping This script aims to scrape Amazon Warehouse and send an email back if there are products whose price matches with the target

    2 Oct 25, 2021
    Бот - Гуль для твоего телеграм аккаунта

    Я - Гуль (бот), теперь работает в чатах Отблагодарить автора за проделанную работу можно здесь Помощь с установкой тут Установка на Андроид После уста

    57 Nov 06, 2022
    historical code from reddit.com

    This repository is archived. This repository is archived and will not receive any updates or accept issues or pull requests. To report bugs in reddit.

    The Reddit Archives 16.3k Dec 31, 2022
    Recommendation systems are among most widely preffered marketing strategies.

    Recommendation systems are among most widely preffered marketing strategies. Their popularity comes from close prediction scores obtained from relationships of users and items. In this project, two r

    Sübeyte 8 Oct 06, 2021
    A custom rom post bot for Telegram.

    Rom Poster Bot A simple Post Bot written in Python using pyTelegramBotAPI to post rom updates to telegram whenever you need. Made by lazy peep for laz

    Prajwal 6 Nov 03, 2022
    Github-Checker - Simple Tool To Check If Github User Available Or Not

    Github Checker Simple Tool To Check If Github User Available Or Not Socials: Lan

    ميخائيل 7 Jan 30, 2022
    This bot will pull a stream of tweets based on rules you set and automatically reply to them.

    Twitter reply bot This bot will pull a stream of tweets based on rules you set and automatically reply to them. I built this bot in order to help comb

    Brains 1 Feb 13, 2022
    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
    Cord Python API Client

    Cord Python API Client The data programming platform for AI 💻 Features Minimal low-level Python client that allows you to interact with Cord's API Su

    Cord 52 Nov 25, 2022
    Minecraft checker

    This Project checks if a minecraft account is a nfa/sfa account or invalid it also says you if the ip you are using is shadow banned from minecraft (shadow bann is if you send too many login attempts

    baum1810 4 Oct 03, 2022
    ShoukoKomiRobot - An anime themed telegram bot that can convert telegram media

    ShoukoKomiRobot • 𝕎𝕣𝕚𝕥𝕥𝕖𝕟 𝕀𝕟 Python3 • 𝕃𝕚𝕓𝕣𝕒𝕣𝕪 𝕌𝕤𝕖𝕕 Pyrogram

    25 Aug 14, 2022
    The easiest way to deploy this Bot

    How To Host The easiest way to deploy this Bot Update Channe

    Isekai Reszz 1 Jan 23, 2022
    Using twitter lists as your feed

    Twitlists A while ago, Twitter changed their timeline to be algorithmically-fed rather than a simple reverse-chronological feed. In particular, they p

    Peyton Walters 5 Nov 21, 2022
    Python client for ETAPI of Trilium Note.

    Python client for ETAPI of Trilium Note.

    33 Dec 31, 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 & WINDOWS with honeypot

    HYDRA 2 Dec 24, 2021
    A discord bot providing notifications of player activity on a minecraft server.

    tos-alert A discord bot providing notifications of player activity on a minecraft server. Setup By default the app does not launch and will crash with

    1 Jul 22, 2022