mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-27 19:25:52 +08:00
修复github搜索时间长问题
This commit is contained in:
@@ -90,6 +90,8 @@ class Github(Search):
|
|||||||
if resp.status_code != 200:
|
if resp.status_code != 200:
|
||||||
logger.log('ERROR', f'{self.session}模块搜索出错')
|
logger.log('ERROR', f'{self.session}模块搜索出错')
|
||||||
break
|
break
|
||||||
|
if 'couldn’t find any code' in resp.text:
|
||||||
|
break
|
||||||
soup = BeautifulSoup(resp.text, 'lxml')
|
soup = BeautifulSoup(resp.text, 'lxml')
|
||||||
subdomains = self.match(self.domain, soup.text)
|
subdomains = self.match(self.domain, soup.text)
|
||||||
self.subdomains = self.subdomains.union(subdomains)
|
self.subdomains = self.subdomains.union(subdomains)
|
||||||
|
|||||||
Reference in New Issue
Block a user