Note: You'll need python3 and the following packages for this to work
- pandas
- json
- requests
- urllib.request
- sys
- collections
- datetime
- os
- itertools
- matplotlib
- numpy
- random
- folium
- seaborn
- plotly
- orca
- Go here to request access from Untappd
- I chose Personal App but you should choose whatever you need it for
- You need the
- Application name
- Support URL (I put my personal website but it doesn't really matter unless you are trying to access the API for a website)
- Callback URL (I just used a random word)
- Description
- Once accepted, you should have a Client ID and a Client Secret.
-
Fill in the following link with your information replaced (CLIENTID, CALLBACKURL) https://untappd.com/oauth/authenticate/?client_id=CLIENTID&response_type=code&redirect_url=CALLBACKURL and go to the website.
-
The url in the browser should have changed to https://untappd.com/oauth/authenticate/personal?code=###################. The ################### is your code. Make sure to save this also.
-
Fill in the following link with your information replaced https://untappd.com/oauth/authorize/?client_id=CLIENTID&client_secret=CLIENTSECRET&response_type=code&redirect_url=redirect_url&code=CODE
- CLIENTID = your client_id
- CLIENTSECRET = your client_secret
- redirect_url = your callback URL
- CODE (not code, it is the one in all caps) = the code received from Step 2. You don't need the code anymore after this
-
You should be sent to a page with your access_token
- Create a txt file called
user_information.txt
. The file should look like this where ############ is replaced by your information
username = ############
client_id = ############
client_secret = ############
access_token = ############
- Run the python file
Untappd_Data.py
. If you are going to run it in the terminal, type
python Untappd_Data.py
- The data should now all be downloaded into the
data/
directory that was created
- Run the python file
Untappd_Analytics.py
. In the terminal, type in
python Untappd_Analytics.py
- The
graphs/
directory should contain all of images.