def _github_count(self, url):
url = self.url_api + url + "<STR_LIT>"<EOL>if self.username and self.auth_token:<EOL><INDENT>auth = (self.username, self.auth_token)<EOL><DEDENT>else:<EOL><INDENT>auth = None<EOL><DEDENT>try:<EOL><INDENT>info = self.py3.request(url, auth=auth)<EOL><DEDENT>except (self.py3.RequestException):<EOL><INDENT>return<EOL><DEDENT>if info and info.status_code == <NUM_LIT:200>:<EOL><INDENT>return int(info.json()["<STR_LIT>"])<EOL><DEDENT>if info.status_code == <NUM_LIT>:<EOL><INDENT>if not self.repo_warning:<EOL><INDENT>self.py3.notify_user("<STR_LIT>")<EOL>self.repo_warning = True<EOL><DEDENT><DEDENT>return "<STR_LIT:?>"<EOL>
Get counts for requests that return 'total_count' in the json response.