Spaces:
Sleeping
Sleeping
# app_logic.py | |
import requests | |
import json | |
def run_my_application(): | |
""" | |
Fetch and process a remote JSON file. | |
Replace this with your real application logic. | |
""" | |
json_file_paths = ["https://arinsight.co/skills/Education%20and%20Training_skills.json"] | |
for file_url in json_file_paths: | |
# Fetch the content from the URL | |
response = requests.get(file_url) | |
# Raise an error if the request failed | |
response.raise_for_status() | |
# Parse the JSON content | |
data = response.json() | |
# Assuming you want to return the 'Primary Skill' of the first item | |
return data[0]['Primary Skill'] | |