Use custom user-agent to bypass cloudflare (i hope)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
05797ee1d2
commit
38952ae747
@ -11,7 +11,9 @@ from requests import RequestException
|
|||||||
|
|
||||||
from ..config import CACHE_TIMEOUT, IS_DEBUG
|
from ..config import CACHE_TIMEOUT, IS_DEBUG
|
||||||
|
|
||||||
scraper = create_scraper()
|
scraper = create_scraper(browser={
|
||||||
|
'custom': 'ScraperBot/1.0'
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
class ConnectorReturn(Enum):
|
class ConnectorReturn(Enum):
|
||||||
|
Reference in New Issue
Block a user