Skip to main content

Scrapes good music off Reddit, makes a spotify playlist

Project description

listentoeverything

https://travis-ci.org/happykhan/listentoeverything.svg?branch=master Pypi Updates

Scrapes good music off Reddit, makes a spotify playlist

Installation and Usage

via pip:

pip install listentoeverything

via source:

git clone git@github.com:happykhan/listentoeverything.git
cd listentoeverything
pip install -r requirements.txt

Then run:

python listentoeverything/cli.py --config_file <config_file.yml>

Configuration

You will need to sign up to the Spotify API and reddit API.

They will issue you with various authorisation keys which you need to specify in the config file (default location is ~/.listen).

reddit:
   client_id: <Your key>
   client_secret: <Your key>
   user_agent: listenonspotify
   username: <Your reddit username>
   password: <Your pass>
spotify:
   username: <Your spotify username>
   scope: playlist-modify-public
   client_id: <Your key>
   client_secret: <Your key>
   redirect_uri: http://localhost/

Spotify login

Spotify requires users to authorise 3rd party programs through the website. Normally the first time you run this script it will open a web browser and redirect you to spotify, where a user would need to click authorise. Then it will come back to a redirect URL. As this isn’t a website, I just send it back to localhost.

docs/spotify_login.png

The script will want to know what the URL was, including the code. So copy this from the address bar and paste in the prompt.

docs/spotify_token.png

The token will be cached for a while so you do not need to do this every time.

License

listentoeverything is free software under the GNU General Public License v3.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2019-03-17)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for listentoeverything, version 0.3.3
Filename, size File type Python version Upload date Hashes
Filename, size listentoeverything-0.3.3-py2.py3-none-any.whl (7.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size listentoeverything-0.3.3.tar.gz (128.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page