Skip to content

Commit 01d9e9c

Browse files
committed
First commit of test.py
1 parent 2211902 commit 01d9e9c

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

test.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import requests
2+
import json
3+
4+
# The raw URL of your JSON file
5+
RAW_URL = "https://raw.githubusercontent.com/SingularityNET-Archive/SingularityNET-Archive/main/Data/Snet-Ambassador-Program/Meeting-Summaries/2025/meeting-summaries-by-id.json"
6+
7+
response = requests.get(RAW_URL)
8+
response.raise_for_status() # Checks for errors
9+
10+
# Load JSON data
11+
data = json.loads(response.text)
12+
13+
# Now you can use 'data' as a Python dictionary or list
14+
print(data)
15+
16+
# Example: Access a specific meeting summary by ID, if your JSON structure is like { "123": {...}, ... }
17+
meeting_id = "123"
18+
if meeting_id in data:
19+
print("Meeting summary for ID 123:")
20+
print(data[meeting_id])
21+
else:
22+
print(f"No summary found for ID {meeting_id}")

0 commit comments

Comments
 (0)