-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathZAPI_test.py
More file actions
47 lines (43 loc) · 1.26 KB
/
ZAPI_test.py
File metadata and controls
47 lines (43 loc) · 1.26 KB
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
46
47
# import json
# import requests
# from pymongo import MongoClient
# client = MongoClient(
# '****')
# # input()
# resp = requests.get("https://dummyapi.io/data/v1/user?limit=100", headers={
# 'app-id': '*********'
# })
# # with open('json.json', 'w', encoding='utf-8') as f:
# # f.write(resp.text["data"])
# data = json.loads(resp.text)
# # print(data['data'], )
# # lis = []
# # print(len(data['data']))
# # input()
# for i in data['data']:
# dat = {
# "_id": i['id'],
# 'Hospital': i['firstName'],
# 'Radiologist': i['firstName'][:3] + i['lastName'][:3] + '@' + 'jayahoo.com',
# 'RadioEmail': i['lastName'],
# 'password': i['picture'],
# 'Location': i['picture'][::-1][:12]
# }
# # lis.append(dat)
# print(dat)
# print(',')
# for _ in range(int(input())):
# n = int(input())
# arth = input()
# count = 1
# fin = arth.count("r") + arth.count("c") + arth.count("l") + arth.count("g")
# print(fin, arth.count('c'), )
# if fin == 0:
# print(1)
# else:
# print((2**fin) % (10**9 + 7))
import requests
resp = requests.get('http://localhost:3000/api/edit-delSubject', headers={
'api-key': "MELON_LUSK"
})
print(resp.text)