Skip to main content

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.

Release files for listentoeverything 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for listentoeverything 0.3.3
File Size Uploaded
listentoeverything-0.3.3.tar.gz 128.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for listentoeverything 0.3.3
File Interpreter ABI Platform
listentoeverything-0.3.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 135.9 kB

Release files / listentoeverything-0.3.3.tar.gz

Download URL listentoeverything-0.3.3.tar.gz
Size 128.0 kB
Tags Source
SHA-256 checksum
How to use checksums
40d40ece5de606b6cd87575e56517984bfb19d6d2316aef56f0271f881cdcd4b
BLAKE2b-256 checksum
How to use checksums
a8b0a7f2b9d1d989db92bc1607ec58613308731f0132561f5f7dda8cece3279e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / listentoeverything-0.3.3-py2.py3-none-any.whl

Download URL listentoeverything-0.3.3-py2.py3-none-any.whl
Size 7.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e06f7d2c9d85c758d057cb4e3a39f17a13ce29de6c5b5c0339779a6976a37fbe
BLAKE2b-256 checksum
How to use checksums
c4d6d221c553d7222444346d76b9b625cc8bc830c02d159ee3c3fd4d72b4d65a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.1

2 release files

0.2.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page