capsolver-extension-python
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: capsolver_extension_python | ||
| Version: 1.0.2 | ||
| Version: 1.0.3 | ||
| Summary: Capsolver Extension Python allows you to easily integrate Capsolver Extension in web automation frameworks like Botasaurus, Selenium, and Playwright. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/omkarcloud/capsolver-extension-python |
@@ -1,6 +0,2 @@ | ||
| def perform_capsolver_file_updates(ext, api_key, app_id): | ||
| def update_js_contents(content): | ||
| def update_js_contents(content, api_key, app_id): | ||
| to_replace = "return e.defaultConfig" | ||
@@ -13,6 +9,3 @@ app_id_str = f", appId: '{app_id}'" if app_id else "" | ||
| for file in ext.get_js_files(): | ||
| file.update_contents(update_js_contents) | ||
| def update_config_contents(content): | ||
| def update_config_contents(content, api_key, app_id): | ||
| key_replaced = content.replace("apiKey: '',", f"apiKey: '{api_key}',") | ||
@@ -28,3 +21,7 @@ # When you use the Capsolver Extension, we integrate our own app ID into the extension if you haven't provided one. This allows us to earn a small commission from each captcha you solve, at no extra cost to you. | ||
| return key_replaced | ||
| def perform_capsolver_file_updates(ext, api_key, app_id): | ||
| for file in ext.get_js_files(): | ||
| file.update_contents(lambda x: update_js_contents(x, api_key, app_id)) | ||
| ext.get_file("/assets/config.js").update_contents(update_config_contents) | ||
| ext.get_file("/assets/config.js").update_contents(lambda x: update_config_contents(x, api_key, app_id)) |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: capsolver_extension_python | ||
| Version: 1.0.2 | ||
| Version: 1.0.3 | ||
| Summary: Capsolver Extension Python allows you to easily integrate Capsolver Extension in web automation frameworks like Botasaurus, Selenium, and Playwright. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/omkarcloud/capsolver-extension-python |
+1
-1
@@ -23,3 +23,3 @@ from setuptools import setup | ||
| name="capsolver_extension_python", | ||
| version="1.0.2", | ||
| version="1.0.3", | ||
| author="Chetan Jain", | ||
@@ -26,0 +26,0 @@ author_email="chetan@omkar.cloud", |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
18592
0.41%