Use custom user-agent to bypass cloudflare (i hope)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2020-05-04 10:29:48 +02:00
parent 05797ee1d2
commit 38952ae747

View File

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