local proxy

This commit is contained in:
Your Name 2022-06-21 19:59:43 -04:00
parent b84ebd3383
commit 254b69a583

View file

@ -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()