andreidrang / python3-capsolver Goto Github PK
View Code? Open in Web Editor NEWPython library for Capsolver
Home Page: https://andreidrang.github.io/python3-capsolver/
License: MIT License
Python library for Capsolver
Home Page: https://andreidrang.github.io/python3-capsolver/
License: MIT License
My program shows this warning:
/home/autologin/.venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:317: UserWarning: Valid config keys have changed in V2:
* 'allow_population_by_field_name' has been renamed to 'populate_by_name'
allow_population_by_field_name
is being used in this line.
Hey, I am using this in visual studio 2022 and I keep getting while I attempt to use this line:
from python3_captchaai.fun_captcha import FunCaptcha
Is this just me?
Not sure what im doing here- I can print the token but im having issues sending it back to the server.
iframe = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.XPATH, '//iframe[@title="reCAPTCHA"]'))
)
driver.switch_to.frame(iframe)
print("Inside reCAPTCHA iframe...")
# Solve the captcha and capture the token (adjust this part according to your library's documentation)
captcha_solver = ReCaptcha(api_key="",
captcha_type="ReCaptchaV2Task",
websiteURL="",
websiteKey="",
proxy=proxy)
captcha_token = captcha_solver.captcha_handler() # Assuming this returns the token
print(captcha_token)
# Switch back to the main content if you were inside an iframe
driver.switch_to.default_content()
# Assuming captcha_token is an object and has a 'gRecaptchaResponse' attribute
token_string = captcha_token.gRecaptchaResponse
# Safely convert the token_string to a JavaScript string
import json
safe_captcha_token = json.dumps(token_string)
# Find the textarea element
textarea = driver.find_element(By.ID, "g-recaptcha-response")
# Execute the JavaScript code to insert the CAPTCHA token into the textarea
driver.execute_script(f"arguments[0].value = {safe_captcha_token};", textarea)
# Wait for the element with the specified XPath to have the attribute aria-checked="true"
wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="recaptcha-anchor" and @aria-checked="true"]')))
Can you add appId
to the task, so us developers can do referrals
Thanks
This issue still exists, from what I've noticed.
* 'allow_population_by_field_name' has been renamed to 'populate_by_name'
warnings.warn(message, UserWarning)
Originally posted by @ferrari in #63 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.