-
Notifications
You must be signed in to change notification settings - Fork 5
/
test.py
19 lines (15 loc) · 1018 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import requests
res = requests.post("http://127.0.0.1:3333/getIllustListByUid", data={"uid": "4837211"})
print('call getIllustListByUid api', res.text)
res = requests.post("http://127.0.0.1:3333/getIllustListByUid", data={"uid": "none"})
print('call getIllustListByUid api using non-existent uid', res.text)
res = requests.post("http://127.0.0.1:3333/getIllustRanking", data={"mode": "day"})
print('call getIllustRanking api', res.text)
res = requests.post("http://127.0.0.1:3333/getIllustRanking", data={"mode": "none"})
print('call getIllustRanking api using non-existent mode', res.text)
res = requests.get("http://127.0.0.1:3333/getTrendingTags")
print('call getTrendingTags api', res.text)
res = requests.post("http://127.0.0.1:3333/getIllustDownloadUrl", data={"illust_id": "59580629"})
print('call getIllustDownloadUrl api', res.text)
res = requests.post("http://127.0.0.1:3333/getIllustDownloadUrl", data={"illust_id": "none"})
print('call getIllustDownloadUrl api using non-existent illust_id', res.text)