Created
August 5, 2020 22:43
-
-
Save rileypredum/f2d5dd42002cf2a327ab7d94943eeb23 to your computer and use it in GitHub Desktop.
EMSI - Global Skills List
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def extract_skills_list(): | |
all_skills_endpoint = "https://emsiservices.com/skills/versions/latest/skills" # List of all skills endpoint | |
auth = "Authorization: Bearer " + access_token # Auth string including access token from above | |
headers = {'authorization': auth} # headers | |
response = requests.request("GET", all_skills_endpoint, headers=headers) # response | |
response = response.json()['data'] # the data | |
all_skills_df = pd.DataFrame(json_normalize(response)); # Where response is a JSON object drilled down to the level of 'data' key | |
return all_skills_df | |
extract_skills_list() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment