From 7d12506b3d6dfac3553fa3a7b7101c63fd8ecebf Mon Sep 17 00:00:00 2001 From: Hugo Demenez <71768413+hugodemenez@users.noreply.github.com> Date: Fri, 23 Feb 2024 13:43:19 +0100 Subject: [PATCH] docs: spelling corrections to 2captcha.py It appeared to be some spelling mistakes in docs and error messages. There are in this commit some corrections. --- cloudscraper/captcha/2captcha.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cloudscraper/captcha/2captcha.py b/cloudscraper/captcha/2captcha.py index 1052e02..97e3ab4 100644 --- a/cloudscraper/captcha/2captcha.py +++ b/cloudscraper/captcha/2captcha.py @@ -44,14 +44,14 @@ def checkErrorStatus(response, request_type): errors = { 'in.php': { - "ERROR_WRONG_USER_KEY": "You've provided api_key parameter value is in incorrect format, it should contain 32 symbols.", - "ERROR_KEY_DOES_NOT_EXIST": "The api_key you've provided does not exists.", + "ERROR_WRONG_USER_KEY": "You've provided api_key parameter value in incorrect format, it should contain 32 symbols.", + "ERROR_KEY_DOES_NOT_EXIST": "The api_key you've provided does not exist.", "ERROR_ZERO_BALANCE": "You don't have sufficient funds on your account.", "ERROR_PAGEURL": "pageurl parameter is missing in your request.", "ERROR_NO_SLOT_AVAILABLE": "No Slots Available.\nYou can receive this error in two cases:\n" "1. If you solve ReCaptcha: the queue of your captchas that are not distributed to workers is too long. " - "Queue limit changes dynamically and depends on total amount of captchas awaiting solution and usually it's between 50 and 100 captchas.\n" + "Queue limit changes dynamically and depends on total amount of captchas awaiting solution and is usually between 50 and 100 captchas.\n" "2. If you solve Normal Captcha: your maximum rate for normal captchas is lower than current rate on the server." "You can change your maximum rate in your account's settings.", "ERROR_IP_NOT_ALLOWED": "The request is sent from the IP that is not on the list of your allowed IPs.", @@ -80,8 +80,8 @@ def checkErrorStatus(response, request_type): "REPORT_NOT_RECORDED": "Error is returned to your complain request if you already complained lots of correctly solved captchas.", "ERROR_IP_ADDRES": "You can receive this error code when registering a pingback (callback) IP or domain." - "That happes if your request is coming from an IP address that doesn't match the IP address of your pingback IP or domain.", - "ERROR_TOKEN_EXPIRED": "You can receive this error code when sending GeeTest. That error means that challenge value you provided is expired.", + "That happens if your request is coming from an IP address that doesn't match the IP address of your pingback IP or domain.", + "ERROR_TOKEN_EXPIRED": "You can receive this error code when sending GeeTest. That error means the challenge value you provided is expired.", "ERROR_EMPTY_ACTION": "Action parameter is missing or no value is provided for action parameter." } } @@ -245,11 +245,11 @@ def getCaptchaAnswer(self, captchaType, url, siteKey, captchaParams): self.reportJob(jobID) except polling2.TimeoutException: raise CaptchaTimeout( - f"2Captcha: Captcha solve took to long and also failed reporting the job the job id {jobID}." + f"2Captcha: Captcha solve took too long and also failed reporting the job the job id {jobID}." ) raise CaptchaTimeout( - f"2Captcha: Captcha solve took to long to execute job id {jobID}, aborting." + f"2Captcha: Captcha solve took too long to execute job id {jobID}, aborting." )