mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
代码统一化
This commit is contained in:
@@ -57,7 +57,7 @@ class Baidu(Search):
|
|||||||
self.subdomains.update(subdomains)
|
self.subdomains.update(subdomains)
|
||||||
self.page_num += self.per_page_num
|
self.page_num += self.per_page_num
|
||||||
# 搜索页面没有出现下一页时停止搜索
|
# 搜索页面没有出现下一页时停止搜索
|
||||||
if '&pn={next_pn}&'.format(next_pn=self.page_num) not in resp.text:
|
if f'&pn={self.page_num}&' not in resp.text:
|
||||||
break
|
break
|
||||||
if self.page_num >= self.limit_num: # 搜索条数限制
|
if self.page_num >= self.limit_num: # 搜索条数限制
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user