Skip to content

Commit 8d1218c

Browse files
authored
Update index.py
1 parent 4eb4087 commit 8d1218c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def getdata(name):
1010
gitpage = requests.get("https://github.com/" + name)
1111
data = gitpage.text
1212
datadatereg = re.compile(r'data-date="(.*?)" data-level')
13-
datacountreg = re.compile(r'rx="2" ry="2">(.*?) contribution')
13+
datacountreg = re.compile(r'<span class="sr-only">(.*?) contribution')
1414
datadate = datadatereg.findall(data)
1515
datacount = datacountreg.findall(data)
1616
datacount = list(map(int, [0 if i == "No" else i for i in datacount]))

0 commit comments

Comments
 (0)