From 3bba5f1aff5c137129c24a45166dde62644b9d45 Mon Sep 17 00:00:00 2001 From: "Seraphim R.P" Date: Wed, 24 Jun 2020 14:49:06 -0400 Subject: [PATCH] Update client.py --- goarch_api/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/goarch_api/client.py b/goarch_api/client.py index 57ab411..750e002 100644 --- a/goarch_api/client.py +++ b/goarch_api/client.py @@ -18,6 +18,7 @@ import requests import sys +import cloudscraper class HTTPClient: @@ -35,7 +36,7 @@ class HTTPClient: } url = f"{base_url}{path}" - resp = self.session.request(method, url, headers=headers) + resp = cloudscraper.create_scraper(sess=self.session).request(method, url, headers=headers) exception_strings = { "400": "Bad Request",