-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.py
31 lines (25 loc) · 1.11 KB
/
server.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
import os
import json
from datetime import datetime
from FetchURL.fetch_data import DataFetcher
from FetchURL.HandleResponse import HandleResponsePiS
from Controller.Lita import PlayerInSkill, PlayerDetail, PlayerSkillComment, PlayerReceived, MomentUserList, Skills
'''
no = 18682745
id = 2190186
skills = Skills.skills_func() # list of skill
player_inskill = PlayerInSkill(gender, skillId, page).player_inskill_func() # list player in skill
player_detail = PlayerDetail(no).player_detail_func() # player detail
player_skill_comment = PlayerSkillComment(skillId, id, page).player_skill_comment_func() # list comment of player in skill
player_received = PlayerReceived(id).player_received_rank_total_func() # player received
moment_user_list = MomentUserList(id).moment_user_list_func() # moment user list (post)
'''
if __name__ == "__main__":
gender = 2
skillId = 1
rows = 1
page = 1
json_data = PlayerInSkill(gender, skillId, page, rows).player_inskill_func() # list player in skill
data_fetcher = DataFetcher(json_data)
data, status_code = data_fetcher.fetch_data()
print(data, status_code)