diff --git a/scholarly/_proxy_generator.py b/scholarly/_proxy_generator.py index bea892c..49d5bd5 100644 --- a/scholarly/_proxy_generator.py +++ b/scholarly/_proxy_generator.py @@ -624,7 +624,7 @@ def ScraperAPI(self, API_KEY, country_code=None, premium=False, render=False): for _ in range(3): proxy_works = self._use_proxy(http=f'{prefix}:{API_KEY}@proxy-server.scraperapi.com:8001') if proxy_works: - proxies = {'http://': f"http://scraperapi:{API_KEY}@proxy-server.scraperapi.com:8001",} + proxies = {'http://': f"{prefix}:{API_KEY}@proxy-server.scraperapi.com:8001",} self.logger.info("ScraperAPI proxy setup successfully") self._new_session(verify=False, proxies=proxies) return proxy_works