@@ -55,6 +55,42 @@ class FriendlyCaptcha(CaptchaParams):
5555 }
5656 }
5757
58+ >>> import asyncio
59+ >>> from python3_capsolver.core.enum import CaptchaTypeEnm
60+ >>> from python3_capsolver.friendly_captcha import FriendlyCaptcha
61+ >>> asyncio.run(FriendlyCaptcha(api_key="CAP-XXXXX",
62+ ... captcha_type=CaptchaTypeEnm.FriendlyCaptchaTaskProxyless,
63+ ... ).aio_captcha_handler(task_payload={
64+ ... "websiteURL": "https://www.yourwebsite.com",
65+ ... "proxy": "ip:port:user:pass"
66+ ... }))
67+ {
68+ "errorId":0,
69+ "errorCode":"None",
70+ "errorDescription":"None",
71+ "taskId":"db0a3153-621d-4f5e-8554-a1c032597ee7",
72+ "status":"ready",
73+ "solution":{
74+ "cookies": "cf_clearance=_VPxxxx",
75+ "headers": {
76+ "sec-ch-ua": "\" Chromium\" ;v=\" 130\" , \" Google Chrome\" ;v=\" 130\" , \" Not?A_Brand\" ;v=\" 99\" ",
77+ "sec-ch-ua-platform": "\" Windows\" ",
78+ "accept": "text/html,axxxx",
79+ "User-Agent": "Mozilla/5.0xxxx",
80+ "sec-ch-ua-mobile": "?0",
81+ "sec-fetch-user": "?1",
82+ "referer": "https://www.yourwebsite.com",
83+ "Sec-Fetch-Dest": "document",
84+ "Sec-Fetch-Mode": "navigate",
85+ "Sec-Fetch-Site": "same-origin",
86+ "accept-language": "en",
87+ },
88+ "page_url": "https://www.yourwebsite.com",
89+ "proxy": "your proxyxxxx",
90+ "token": "_VPCTZXP5bhinxxxx"
91+ }
92+ }
93+
5894 Notes:
5995 https://docs.capsolver.com/en/guide/captcha/FriendlyCaptcha/
6096 """
0 commit comments