local proxy
This commit is contained in:
parent
b84ebd3383
commit
254b69a583
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class DoubanScrapperMixin:
|
|||
error = error + '\nDirect: '
|
||||
get(url)
|
||||
check_content()
|
||||
if last_error == 'network' and settings.LOCAL_PROXY is None and settings.PROXYCRAWL_KEY is not None:
|
||||
if last_error == 'network' and settings.PROXYCRAWL_KEY is not None:
|
||||
error = error + '\nProxyCrawl: '
|
||||
get(f'https://api.proxycrawl.com/?token={settings.PROXYCRAWL_KEY}&url={url}')
|
||||
check_content()
|
||||
|
|
Loading…
Add table
Reference in a new issue