Giter VIP home page Giter VIP logo

spotify-weekly-scheduler's Introduction

Spotify Scheduler Banner

Spotify Weekly Playlist Scheduler

  • Spotify has a Discover Weekly Playlist which has new songs every week. I use it all the time for discovering new music and I also save a lot of these songs to my library to listen to after the week is over.
  • My problem was that I either didn't get around to listening to the full playlist within the week or I incorrectly remembered saving songs to my library. Then, after the week was over I lost those songs forever and missed the chance of finding my new favorite song.
  • This script (when setup with a scheduler) will automatically create a copy of the Discover Weekly playlist every week so that you don't need to worry about losing your music after the week is done.

Getting Started (Locally)

  1. Clone this repository, e.g.
    git clone https://github.com/VishalRamesh50/spotify-weekly-scheduler.git
  2. Copy .vscode.example to .vscode to get linting settings (optional)
    cp -r .vscode.example .vscode
  3. Copy .env.example to .env
    cp .env.example .env
  4. Replace the SPOTIFY_USERNAME and SPOTIFY_PASSWORD in the .env file for the desired user.
  5. Install dependencies
    pip3 install -r requirements.txt
    poetry install
  6. Run the program!
    poetry run python main.py

Important Steps for Deploying (To Heroku)

  1. Add the following buildpacks

  2. Add these config/environment variables

    • CHROMEDRIVER_PATH=/app/.chromedriver/bin/chromedriver
    • GOOGLE_CHROME_BIN=/app/.apt/usr/bin/google-chrome
    • SPOTIFY_USERNAME=your_spotify_username
    • SPOTIFY_PASSWORD=your_spotify_password

Note: This application does not store or send your username and password anywhere. However, they are necessary in order to give this application access to read/create your private Spotify playlists. You can learn more about Spotify Authorization Flow here. You can learn more about Spotify Authorization Scopes here.

  1. Add a scheduling extension of your choice and let it run this shell script every Monday:
    poetry install --no-dev && poetry run python main.py
    What I Use: Advanced Scheduler

spotify-weekly-scheduler's People

Contributors

vishalramesh50 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.