Git Product home page Git Product logo

genius_lookups's Introduction

Genius Lookups

A program that scrapes browser history, finds lyrics lookups on Genius.com, and puts the songs into a Spotify playlist.

Inspired by TheComeUpCode - SpotifyGeneratePlaylist. Many Thanks!

Table of Contents

  • Set Up
  • Modules and APIs Used
  • Issues/ToDo

Set Up

Finding your spotify user ID:

Your user ID is a 10 digit number that can be found easily via the Spotify Mobile app. Click on Settings -> Account and your user ID is listed right there next to "Username."

Your user ID can also be found via the Spotify Desktop app. Go to the Spotify app on your Desktop. Click on your name on the upper right hand corner. This will bring you to your User page. Find the three-dot menu button under where your username is written in big letters. Click on this, then click on Share -> Copy Spotify URI. Paste the URI into the secrets.py file and remove the "spotify:user:" tags. Leave only the number.

Getting a Token:

Click here to get an authentication token to create and add songs to a playlist. You will need to input your user ID, then press "Get Token". The only scopes you need for this project are 'playlist-modify-public' or 'playlist-modify-private.'

Note: The token expires in about 30 minutes or so. If you are having trouble creating the playlist, try generating a new token.

Running the Project:

Once you download the files and add your Spotify user ID and an OAuth tag to the 'secrets.py' file, simply run the 'add_songs' program.

Modules and APIs Used

  • Spotify API
  • requests Library
  • browserhistory
  • BeautifulSoup
  • unicodedata
  • json
  • unidecode

Issues/ToDo

  • Program currently only works with Chrome broswer on a Mac, but I am working on updating the code to work on all systems and browsers.

Please contact me if in using this module you run into any other issues.

genius_lookups's People

Contributors

bmensah 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.