File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 17
17
len_per_info = len (per_info )
18
18
19
19
empty_list = []
20
+ max_tries = 3
21
+
20
22
for i in range (len_per_info ):
21
23
url = per_info [i ]
22
24
print (url )
23
25
data = requests .get (url = url )
24
26
requests_status = "unknown"
25
- while (requests_status == "unknown" ) or (requests_status == "unsuccessful" ):
27
+ while max_tries > 0 and (
28
+ (requests_status == "unknown" ) or (requests_status == "unsuccessful" )
29
+ ):
26
30
if data .status_code == 200 :
27
31
requests_status = "successful"
32
+ print (" Received: %s" % data .json ())
28
33
empty_list .append (data .json ())
29
34
else :
30
35
# handle failure on requests to the url for mac os
31
36
requests_status = "unsuccessful"
32
37
print (f"Failed to get data from: { url } " )
33
38
# make request again to get data from the url
34
39
data = requests .get (url = url )
40
+ max_tries -= 1
35
41
36
42
df1 = pd .DataFrame (empty_list )
37
- df1 ["name" ] = df1 ["name" ].fillna ("" )
43
+ df1 ["name" ] = df1 ["name" ].fillna (df1 [ "login" ] )
38
44
name = df1 ["name" ]
39
45
login = df1 ["login" ]
40
46
url_html = df1 ["html_url" ]
Original file line number Diff line number Diff line change 3
3
# Modelspec contributors
4
4
5
5
This page list names and Github profiles of contributors to Modelspec, listed in no particular order.
6
- This page is generated periodically, most recently on 2023-07-05 .
6
+ This page is generated periodically, most recently on 2023-08-23 .
7
7
8
8
- Padraig Gleeson ([ @pgleeson ] ( https://github.com/pgleeson ) )
9
+ - Manifest Chakalov ([ @mqnifestkelvin ] ( https://github.com/mqnifestkelvin ) )
9
10
- David Turner ([ @davidt0x ] ( https://github.com/davidt0x ) )
11
+ - Peace Ododo ([ @Onoyiza ] ( https://github.com/Onoyiza ) )
10
12
- Parikshit Singh Rathore ([ @parikshit14 ] ( https://github.com/parikshit14 ) )
11
- - Katherine Mantel ([ @kmantel ] ( https://github.com/kmantel ) )
13
+ - Ankur Sinha ([ @sanjayankur31 ] ( https://github.com/sanjayankur31 ) )
14
+ - kmantel ([ @kmantel ] ( https://github.com/kmantel ) )
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ pytest tests -v
36
36
37
37
cd docs
38
38
python generate.py
39
+ python contributors.py
39
40
cd sphinx
40
41
make clean
41
42
make html
You can’t perform that action at this time.
0 commit comments