Spaces:
Sleeping
Sleeping
File size: 668 Bytes
70ec80a abf93af 70ec80a abf93af 70ec80a abf93af |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# 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']
|