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
    REPO USERBOT YANG DIBUAT DARI BERBAGAI REPO USERBOT GITHUB.

    Lord Userbot Userbot Yang Digunakan Untuk Bersenang-Senang Di Telegram Repo Lord Userbot Repo Yang Dibuat Alvin Dari Berbagai Repo Userbot Github CARA

    Alvin 70 Jan 02, 2023
    The Encoder Bot For Python

    The_Encoder_Bot Configuration Add values in environment variables or add them in config.env.example and rename file to config.env. Basics API_ID - Get

    8 Jan 01, 2022
    A Python Tumblr API v2 Client

    PyTumblr Installation Install via pip: $ pip install pytumblr Install from source: $ git clone https://github.com/tumblr/pytumblr.git $ cd pytumblr $

    Tumblr 677 Dec 21, 2022
    Simple spam bot made in python

    Simple Spam Bot A Simple and easy way to be the most hated person between your friends, All you have to do is spam the group chat using this bot until

    Kareem Osama 6 Sep 05, 2022
    A simpler way to make forms, surveys, and reaction input using discord.py.

    discord-ext-forms An easier way to make forms and surveys in discord.py. This module is a very simple way to ask questions and create complete forms i

    thrizzle 16 Nov 06, 2022
    A python API for BSCScan (Binance Smart Chain Explorer), available on PyPI.

    bscscan-python A complete Python API for BscScan.com, available on PyPI. Powered by BscScan.com APIs. This is a gently modified fork of the etherscan-

    Panagiotis Kotsias 246 Dec 31, 2022
    A Powerfull Userbot Telegram PandaX_Userbot, Vc Music Userbot + Bot Manager based Telethon

    Support ☑ CREDITS THANKS YOU VERRY MUCH FOR ALL Telethon Pyrogram TeamUltroid TeamUserge CatUserbot pytgcalls Dan Lainnya

    22 Dec 25, 2022
    A Python Library to interface with Tumblr v2 REST API & OAuth

    Tumblpy Tumblpy is a Python library to help interface with Tumblr v2 REST API & OAuth Features Retrieve user information and blog information Common T

    Mike Helmick 125 Jun 20, 2022
    A Discord BOT that uses Google Sheets for storing the roles and permissions of a discord server.

    Discord Role Manager Bot Role Manager is a discord BOT that utilizes Google Sheets for the organization of a server's hierarchy and permissions. Detai

    Dion Rigatos 17 Oct 13, 2022
    Neko is An Anime themed advance Telegram group management bot.

    NekoRobot A modular telegram Python bot running on python3 with an sqlalchemy, mongodb database. ╒═══「 Status 」 Maintained Support Group Included Free

    Lovely Boy 22 Jan 05, 2023
    Share your files on local network just by one click.

    Share Your Folder This script helps you to share any folder anywhere on your local network. it's possible to use the script on both: Windows (Click he

    Mehran Seifalinia 15 Oct 23, 2022
    A project that alerts me when there's a dog outside so I can go look at it.

    Dog Detector A project that alerts me when there's a dog outside so I can go look at it. Tech Specs This script uses the YOLOv3 object detection model

    rydercalmdown 58 Jul 29, 2022
    This discord bot preview user 42intra login picture.

    42intra_Pic BOT This discord bot preview user 42intra login picture. created by: @YOPI#8626 Using: Python 3.9 (64-bit) (You don't need 3.9 but some fu

    Zakaria Yacoubi 7 Mar 22, 2022
    Telegram bot to scrape images from the reddit universe

    Telegram bot to scrape images from the reddit universe

    XD22 3 Sep 30, 2022
    Rocks vc Userbot: A Telegram Bot Project That's Allow You To Play Audio And Video Music On Telegram Voice Chat Group

    ⭐️ Rocks VC Userbot ⭐️ Telegram Userbot To Play Audio And Video Song On VC Chat

    Dr Asad Ali 10 Jul 18, 2022
    Mventory is an API-driven solution for Makerspaces, Tinkerers, and Hackers.

    Mventory is an API-driven inventory solution for Makers, Makerspaces, Hackspaces, and just about anyone else who needs to keep track of "stuff".

    Make Monmouth 107 Dec 21, 2022
    Repositório para a Live Coding do dia 22/12/2021 sobre AWS Step Functions

    DIO Live Step Functions - 22/12/2021 Serviços AWS utilizados AWS Step Functions AWS Lambda Amazon S3 Amazon Rekognition Amazon DynamoDB Amazon Cloudwa

    Cassiano Ricardo de Oliveira Peres 5 Mar 01, 2022
    An open-source Discord Bot Project based on programming!

    An open-source Discord Bot Project based on programming!

    Vladimer Moore 2 Aug 22, 2022
    HackZ-Token-Grabber-V2 - HackZ Token Grabber V2

    HackZ-Token-Grabber-V2 was made by Love ❌ code ✅ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ 🌟

    ! ™NightMare 2 Mar 01, 2022
    Housing Price Prediction Using Machine Learning.

    HOUSING PRICE PREDICTION USING MACHINE LEARNING DESCRIPTION Housing Price Prediction Using Machine Learning is to predict the data of housings. Here I

    Shreya Shree Padhi 1 Aug 03, 2022