DiscoGS 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 discogs-python-client
-
cd discogs-python-client
-
Activate the virtual environment
workon discogs-python-client
-
Install the dependencies
pip2 install -r requirements.txt
-
Deactivate virtual environment once done
deactivate
- Test XML Parser
python test_xml_artist.py artist_test.xml
- Test XML Parser
python test_xml_genre.py release_test.xml
-
Create an account at https://www.discogs.com and create a token
-
Add the token in the env variables to be used in the python script
export DISCOGS_TOKEN="YOUR_PRIVATE_TOKEN"
-
Test
python test_client.py artist_test.xml