Hi, how can I implement this API trough selenium?
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())
{“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?
Join in the discussion - add comment below:
Wow thank u sir. It work
Hello sir,
you can find the example code at https://gitlab.com/reversecoders/flycaptcha