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 Powerful telegram giveawayz bot based on the python-telegram-bot API

    GiveawayZ Bot A Powerful telegram giveawayz bot based on the python-telegram-bot API. Powered by Team Zyntax and Team DFX Developed by @Zycho-Dev A pr

    Zycho #AFK 5 Jul 31, 2022
    A simple Spamming software made in python

    Spam-qlk Warning!!! 'I' am not responsible for the 'damage or harm' caused by this 'Software'!!! Use at your own risk!!! Input the message. After you

    Aditya kumar 1 Nov 30, 2021
    Scripts to help you win the Pizza Express

    Slice of the Prizes Slice of the Prizes is a Python Script designed to enter the "Slice of the Action" competition hosted by Pizza Express the competi

    Luke Bendall 1 Nov 04, 2021
    The official Python library for Shodan

    shodan: The official Python library and CLI for Shodan Shodan is a search engine for Internet-connected devices. Google lets you search for websites,

    John Matherly 2.1k Dec 31, 2022
    This is a discord token generator(requests) which works and makes 200 tokens per minute

    Discord Email verified token generator Creates email verified discord accounts (unlocked) Report Bug · Discord server Features Profile pictures and na

    131 Dec 10, 2022
    Facebook open graph api implementation using the Django web framework in python

    Django Facebook by Thierry Schellenbach (mellowmorning.com) Status Django and Facebook are both rapidly changing at the moment. Meanwhile, I'm caught

    Thierry Schellenbach 1.4k Dec 29, 2022
    Cogs for RedDiscord-Bot V3

    Cogs v3 Disclaimer: This is an unapproved repo, meaning no one has formally reviewed this repo yet and any loss of data in your bot isn't my fault (An

    Honkertonken 5 Nov 17, 2022
    Rust UserBot, Telegram istifadəsini asanlaşdıran bir proyektdir.

    RUST USERBOT 🇦🇿 Rust UserBot, Telegram istifadəsini asanlaşdıran bir proyektdir. Qurulum Heroku Serverə qurulum git clone https://github.com/rustres

    1 Oct 25, 2021
    SpaceManJax's open-source Discord Bot. Now on Github!

    SpaceManBot This is SpaceManJax's open-source Discord.py Bot. Now on Github! This bot runs on Repl.it, which is a free online code editor. It can do a

    Jack 1 Nov 16, 2021
    Advanced Number Validator Using telnyx api

    Number Validator Python v1.0.0 Number Validator Using telnyx api DISCLAIMER This Tool is only for educational purposes You'll be responsible yourself

    xBlackxCoder 3 Sep 24, 2022
    An open-source Discord bot that alerts your server when it's Funky Monkey Friday!

    Funky-Monkey-Friday-Bot An open-source Discord bot that alerts your server when it's Funky Monkey Friday! Add it to your server here! https://discord.

    Cole Swinford 0 Nov 10, 2022
    Unofficial Discord Rich Presence for HackTheBox platform

    HTBRichPresence Unofficial Discord Rich Presence for HackTheBox platform The project is under lazy development. How to run Install requirements: // I'

    Antonio 4 Apr 19, 2022
    Messing around with GitHub API to look at omicron build times

    gh-workflow-runs This is a very simple tool to dump out basic information about workflow runs for a GitHub repo. The structure is based on gh-subscrip

    David Pacheco 1 Nov 30, 2021
    Kevin L. 3 Jul 14, 2022
    Using Streamlit to build a simple UI on top of the OpenSea API

    OpenSea API Explorer Using Streamlit to build a simple UI on top of the OpenSea API. 🤝 Contributing Contributions, issues and feature requests are we

    Gavin Capriola 1 Jan 04, 2022
    摩尔庄园手游脚本

    摩尔庄园 BlueStacks 脚本 手游上线,情怀再起,但面对游戏中枯燥无味的每日任务和资源采集,你是否觉得肝疼呢? 本项目通过生成 BlueStacks 模拟器的宏脚本,帮助玩家护肝。 使用脚本请阅读 使用方式 和对应的 功能及说明 联系 Telegram 频道 @mole61 Telegram

    WH-2099 43 Dec 16, 2022
    Pydf: A modular Telegram Bot which provides Pdf Tools using PyPdf2

    pyDF-Bot 🌍 Pydf - Pyrogram Document File Bot, a modular Telegram Bot which prov

    HyDrix 2 Feb 18, 2022
    A hyper-user friendly bot framework built on hikari

    Framework A hyper-user friendly bot framework built on hikari. Framework is based off the blocking discord library disco, In both modularity and struc

    Vincent 1 Jan 10, 2022
    A webhook API for Discord.

    Webhook API A webhook API for Discord. Requirements requests Usage

    1 Feb 08, 2022
    NoChannelBot - Bot bans users, that send messages like channels

    No Channel Bot Say "STOP" to users who send messages as channels! Bot prevents u

    Andrew 10 Oct 05, 2022