forked from sd17spring/InteractiveProgramming
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtesting.py
More file actions
27 lines (20 loc) · 647 Bytes
/
testing.py
File metadata and controls
27 lines (20 loc) · 647 Bytes
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
26
27
import indicoio
import json
# from indico_knock import Indico_KEY
indicoio.config.api_key = '9849e59cdcf05c8f6eaecd7bd78a4add'
# j = indicoio.places("U.S. first lady Michelle Obama meets with the children ", threshold=0.01)
# print(j)
with open('michelle_data2.json', 'r') as json_data:
michelle_news = json.load(json_data)
with open('hillary_data2.json', 'r') as json_data:
hillary_news = json.load(json_data)
print(len(michelle_news))
print(len(michelle_news[2]))
for i in michelle_news:
for j in i:
print(j)
print(len(hillary_news))
print(len(hillary_news[0]))
for i in hillary_news:
for j in i:
print(j)