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

This commit is contained in:
Michel Roux 2020-05-04 10:29:48 +02:00
parent 05797ee1d2
commit 38952ae747
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,9 @@ from requests import RequestException
from ..config import CACHE_TIMEOUT, IS_DEBUG
scraper = create_scraper()
scraper = create_scraper(browser={
'custom': 'ScraperBot/1.0'
})
class ConnectorReturn(Enum):