Closed Orbiszeus closed 2 days ago
I'm running this:
from seleniumbase import SB
with SB(uc=True) as sb:
url = "https://www.yemeksepeti.com/city/istanbul/area/besiktas-etiler-mah"
sb.driver.uc_open_with_reconnect(url, 6)
sb.uc_gui_handle_cf()
sb.highlight('span[aria-label="yemeksepeti"]')
breakpoint()
And seeing this:
seleniumbase
version: 4.28.2
urllib3
version: 2.2.2
Thank you so much for quick response, however now it is asking me another reCaptcha which looks like this:
And the html content of the iframe is : `
`Also, in the same webpage there are many restaurant links as you can see. I was wondering how can I click those href links inside those divs with seleniumbase?
When I went directly to https://www.yemeksepeti.com/en/, I didn't get the reCAPTCHA.
from seleniumbase import SB
with SB(uc=True) as sb:
url = "https://www.yemeksepeti.com/en/"
sb.driver.uc_open_with_reconnect(url, 6)
sb.uc_gui_handle_cf()
sb.highlight('span[aria-label="yemeksepeti"]')
breakpoint()
If you do hit reCAPTCHA, you'll need to solve the audio challenge with an external repo: https://github.com/search?q=pydub.AudioSegment.from_mp3+recaptcha+solver+language%3APython&type=code
As for clicking the links, there's a lot of them depending on your location:
len(sb.find_elements("li.vendor-tile-new-m a"))
45
You can click one like this:
sb.click_nth_visible_element("li.vendor-tile-new-m a", 5)
Again, thank you so so much!!
Also I am asking a lot :( However where is the documentation or method descriptions of the find_elements, click_nth_visible_element, etc. ? Thank you!!!
List of methods: SeleniumBase/help_docs/method_summary.md
Lots of existing examples to learn from: SeleniumBase/examples
This is where the iframe is located: <
This is the website:
I am having a problem bypassing this CF checkbox in this website. I am using the newly updated functions. When the browser opens the newly updated uc_click() method which is now handled by uc_gui_handle_cf() does not work. What can I do to get through this? The iframe located in this id="cf-chl-widget-om6tb". My code structure looks like this :
Exception I am getting :