mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
pep8
This commit is contained in:
@@ -31,7 +31,8 @@ class BingAPI(Search):
|
|||||||
self.header = {'Ocp-Apim-Subscription-Key': self.key}
|
self.header = {'Ocp-Apim-Subscription-Key': self.key}
|
||||||
self.proxy = self.get_proxy(self.source)
|
self.proxy = self.get_proxy(self.source)
|
||||||
query = 'site:' + domain + filtered_subdomain
|
query = 'site:' + domain + filtered_subdomain
|
||||||
params = {'q': query, 'safesearch': 'Off', 'count': self.per_page_num,
|
params = {'q': query, 'safesearch': 'Off',
|
||||||
|
'count': self.per_page_num,
|
||||||
'offset': self.page_num}
|
'offset': self.page_num}
|
||||||
resp = self.get(self.addr, params)
|
resp = self.get(self.addr, params)
|
||||||
if not resp:
|
if not resp:
|
||||||
|
|||||||
Reference in New Issue
Block a user