-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfullinfo.py
137 lines (96 loc) · 3.2 KB
/
fullinfo.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# https://developer.wathq.sa/ar/api/16#/
import json
with open('fullinfo.json','r',encoding='utf-8') as json_File :
data=json.load(json_File)
print(data)
print(data['crName'])
print(data['crNumber'])
print(data['crEntityNumber'])
print(data['issueDate'])
print(data['expiryDate'])
print('capital')
print(data['capital']['paidAmount'])
print(data['capital']['subscribedAmount'])
print(data['capital']['announcedAmount'])
print('share')
print(data['capital']['share']['sharePrice'])
print(data['capital']['share']['sharesCount'])
print(data['crMainNumber'])
print('parties')
parties = len(data['parties'])
i = 0
while (i < parties):
print(data['parties'][i]['name'])
print(data['parties'][i]['birthDate'])
print(data['parties'][i]['sharesCount'])
print(data['parties'][i]['gross'])
print('identity')
print(data['parties'][i]['identity']['id'])
print(data['parties'][i]['identity']['type'])
print('relation')
print(data['parties'][i]['relation']['id'])
print(data['parties'][i]['relation']['name'])
print('nationality')
print(data['parties'][i]['nationality']['id'])
print(data['parties'][i]['nationality']['name'])
i = i + 1
print('businessType')
print(data['businessType']['id'])
print(data['businessType']['name'])
print('fiscalYear')
print(data['fiscalYear']['month'])
print(data['fiscalYear']['day'])
print(data['fiscalYear']['calendarType']['id'])
print(data['fiscalYear']['calendarType']['name'])
print('status')
print(data['status']['id'])
print(data['status']['name'])
print(data['status']['nameEn'])
print('cancellation')
print(data['cancellation']['date'])
print(data['cancellation']['reason'])
print('cancellation')
print(data['address']['general']['website'])
print(data['address']['general']['address'])
print(data['address']['general']['email'])
print(data['address']['general']['fax1'])
print(data['address']['general']['fax2'])
print(data['address']['general']['telephone1'])
print(data['address']['general']['telephone2'])
print(data['address']['general']['postalBox1'])
print(data['address']['general']['postalBox2'])
print('national')
print(data['address']['national']['buildingNumber'])
print(data['address']['national']['additionalNumber'])
print(data['address']['national']['streetName'])
print(data['address']['national']['city'])
print(data['address']['national']['zipcode'])
print(data['address']['national']['unitNumber'])
print(data['address']['national']['district']['id'])
print(data['address']['national']['district']['name'])
print(data['isEcommerce'])
print('urls')
urls = len(data['urls'])
i = 0
while (i < urls):
print(data['urls'][i]['name'])
print(data['urls'][i]['type'])
print(data['urls'][i]['typeId'])
i = i + 1
print('location')
print(data['location']['id'])
print(data['location']['name'])
print('company')
print(data['company']['period'])
print(data['company']['startDate'])
print(data['company']['endDate'])
print('activities')
print(data['activities']['description'])
print('isic')
isic = len(data['activities']['isic'])
i = 0
while (i < isic):
print(data['activities']['isic'][i]['id'])
print(data['activities']['isic'][i]['name'])
print(data['activities']['isic'][i]['nameEn'])
i = i + 1