We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd2f97 commit f62da9eCopy full SHA for f62da9e
1 file changed
api/index.py
@@ -9,8 +9,8 @@ def list_split(items, n):
9
def getdata(name):
10
gitpage = requests.get("https://github.com/" + name)
11
data = gitpage.text
12
- datadatereg = re.compile(r'data-date="(.*?)" data-level')
13
- datacountreg = re.compile(r'<span class="sr-only">(.*?) contribution')
+ datadatereg = re.compile(r'data-date="(.*?)" id="contribution-day-component"')
+ datacountreg = re.compile(r'<tool-tip .*?class="sr-only position-absolute">(.*?) contribution')
14
datadate = datadatereg.findall(data)
15
datacount = datacountreg.findall(data)
16
datacount = list(map(int, [0 if i == "No" else i for i in datacount]))
0 commit comments