We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30d5479 commit 2144591Copy full SHA for 2144591
1 file changed
api/index.py
@@ -18,7 +18,7 @@ def getdata(name):
18
gitpage = requests.get("https://github.com/" + name)
19
data = gitpage.text
20
datadatereg = re.compile(r'data-date="(.*?)" id="contribution-day-component')
21
- datacountreg = re.compile(r'<tool-tip [^>]*>(\d+|No) contributions(?= on [^<]*</tool-tip>)')
+ datacountreg = re.compile(r'<tool-tip .*?class="sr-only position-absolute">(.*?) contribution')
22
datadate = datadatereg.findall(data)
23
datacount = datacountreg.findall(data)
24
0 commit comments