Next Big Sound Python client
-
Verify python 2.7 version
python --version
-
Verify pip 9 version
pip2 --version
-
Verify virtualenv 15 version
virtualenv --version
Note: If one missed install it via brew
or easy_install
(install global packages like virtualenv
) and pip
(install python packages in a local environment)
-
Create a virtual environment
mkvirtualenv nextbigsound-python-client
-
cd nextbigsound-python-client
-
Activate the virtual environment
workon nextbigsound-python-client
-
Install the dependencies
pip2 install -r requirements.txt
-
Deactivate virtual environment once done
deactivate
-
Add the token in the env variables to be used in the python script
export NEXT_BIG_SOUND_TOKEN="YOUR_PRIVATE_TOKEN"
-
Test
python test_client.py [amount_of_charts] [amount_of_releases]
, getting charts, releases, appearances and then artists. -
Test
python test_client_2.py [amount_of_artists] [initial_artist_id]
, getting artists directly by generating the ids automatically.