Scrapes good music off Reddit, makes a spotify playlist
Project description
listentoeverything
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.
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.
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.
Source Distribution
Built Distribution
File details
Details for the file listentoeverything-0.3.3.tar.gz
.
File metadata
- Download URL: listentoeverything-0.3.3.tar.gz
- Upload date:
- Size: 128.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40d40ece5de606b6cd87575e56517984bfb19d6d2316aef56f0271f881cdcd4b |
|
MD5 | 0f474fe09017d03fe787c096962f7e83 |
|
BLAKE2b-256 | a8b0a7f2b9d1d989db92bc1607ec58613308731f0132561f5f7dda8cece3279e |
File details
Details for the file listentoeverything-0.3.3-py2.py3-none-any.whl
.
File metadata
- Download URL: listentoeverything-0.3.3-py2.py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e06f7d2c9d85c758d057cb4e3a39f17a13ce29de6c5b5c0339779a6976a37fbe |
|
MD5 | 4e0443d8532f585847beced8852d4ec6 |
|
BLAKE2b-256 | c4d6d221c553d7222444346d76b9b625cc8bc830c02d159ee3c3fd4d72b4d65a |