From 94fec5ef0061467257f8efe1c55083712ccd866a Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Tue, 26 May 2020 21:03:27 +0200 Subject: [PATCH] Fix Ygg again --- pynyaata/connectors/core.py | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pynyaata/connectors/core.py b/pynyaata/connectors/core.py index 965f8f1..6fe2a4c 100644 --- a/pynyaata/connectors/core.py +++ b/pynyaata/connectors/core.py @@ -13,7 +13,7 @@ from ..config import CACHE_TIMEOUT, IS_DEBUG, REQUESTS_TIMEOUT, TWOCAPTCHA_API_K scraper = create_scraper(browser={ 'custom': 'ScraperBot/1.0' -}, recaptcha=TWOCAPTCHA_API_KEY) +}, interpreter='js2py', recaptcha=TWOCAPTCHA_API_KEY) class ConnectorReturn(Enum): diff --git a/requirements.txt b/requirements.txt index 237d980..10ab708 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,5 +8,6 @@ requests==2.23.0 beautifulsoup4==4.9.1 python-dotenv==0.13.0 cloudscraper==1.2.38 +Js2Py==0.70 polling==0.3.1 dateparser==0.7.4