Links

Get categories from job

Tags: #remotive #categories #snippet #opendata #dataframe
Author: Sanjeet Attili​

Input

Imports

import pandas as pd
import requests

Model

Get categories from Remotive

def get_remotejob_categories():
req_url = f"https://remotive.io/api/remote-jobs/categories"
res = requests.get(req_url)
try:
res.raise_for_status()
except requests.HTTPError as e:
return e
res_json = res.json()
# Get categories
jobs = res_json.get('jobs')
return pd.DataFrame(jobs)
​
df_categories = get_remotejob_categories()

Output

Display result

df_categories