Skip to content

Commit 2144591

Browse files
authored
Update index.py
1 parent 30d5479 commit 2144591

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
@@ -18,7 +18,7 @@ def getdata(name):
1818
gitpage = requests.get("https://github.com/" + name)
1919
data = gitpage.text
2020
datadatereg = re.compile(r'data-date="(.*?)" id="contribution-day-component')
21-
datacountreg = re.compile(r'<tool-tip [^>]*>(\d+|No) contributions(?= on [^<]*</tool-tip>)')
21+
datacountreg = re.compile(r'<tool-tip .*?class="sr-only position-absolute">(.*?) contribution')
2222
datadate = datadatereg.findall(data)
2323
datacount = datacountreg.findall(data)
2424

0 commit comments

Comments
 (0)