-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.py
45 lines (38 loc) ยท 1.43 KB
/
api.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import requests
import pandas as pd
import json
def load_job():
response = requests.get("http://www.recommendu.kro.kr:30001/services/job_total")
content = json.loads(response.text)
result = pd.DataFrame(content)
return result
def load_answer():
response = requests.get("http://www.recommendu.kro.kr:30001/services/answer_total")
content = json.loads(response.text)
result = pd.DataFrame(content)
return result
def load_document():
response = requests.get("http://www.recommendu.kro.kr:30001/services/document_total")
content = json.loads(response.text)
result = pd.DataFrame(content)
return result
def load_user():
response = requests.get("http://www.recommendu.kro.kr:30001/accounts/total")
content = json.loads(response.text)
result = pd.DataFrame(content)
return result
def load_answerlog():
response = requests.get("http://www.recommendu.kro.kr:30001/logs/total/answerlog")
content = json.loads(response.text)
result = pd.DataFrame(content)
return result
def load_evallog():
response = requests.get("http://www.recommendu.kro.kr:30001/logs/total/evallog")
content = json.loads(response.text)
result = pd.DataFrame(content)
return result
def load_recommendlog():
response = requests.get("http://www.recommendu.kro.kr:30001/logs/total/recommendlog")
content = json.loads(response.text)
result = pd.DataFrame(content)
return result