flyCaptcha

FREEMIUM
By reversecoders | Updated 10 days ago | Social
Popularity

9.9 / 10

Latency

847ms

Service Level

100%

Health Check

100%

Back to All Discussions

Python Selenium

Rapid account: Firmanireng 18
firmanireng18
4 months ago

Hi, how can I implement this API trough selenium?

this is my code

img_src = driver.find_element(By.XPATH, ‘//img[contains(@data-testid,“whirl-outer-img”)]’)
img1 = img_src.get_attribute(“src”)

img_src = driver.find_element(By.XPATH, ‘//img[contains(@data-testid,“whirl-inner-img”)]’)
img2 = img_src.get_attribute(“src”)

import request

url = “https://flycaptcha.p.rapidapi.com/captcha/tiktok/slide

payload = {
“url1”: img1,
“url2”: img2,
“proxy”: “”
}
headers = {
“content-type”: “application/json”,
“X-RapidAPI-Key”: “911nap2a1fikux09c51sb23m1c30p198916jsn244fc77785fb1”,
“X-RapidAPI-Host”: “flycaptcha.p.rapidapi.com
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())

And this is the output

{“x”: 0, “y”: 136}
[Finished in 29.5s]

i tried find X and Y value by inspect element by nothing is found or my be can you tell me what is next steps please?

Rapid account: Firmanireng 18
firmanireng18 Commented 4 months ago

Wow thank u sir. It work

Rapid account: Reversecoders
reversecoders Commented 4 months ago

Hello sir,

you can find the example code at https://gitlab.com/reversecoders/flycaptcha

Join in the discussion - add comment below:

Login / Signup to post new comments