If you’re doing Selenium scraping YouTube, you gotta embrace the jank.
I found that waiting for specific network calls (using DevTools) works better than element waits. Check out `driver.execute_cdp_cmd('Network.enable', {})` to monitor requests.
For captchas, good luck. Maybe try headless mode with realistic mouse movements? `selenium-stealth` lib might help.
I found that waiting for specific network calls (using DevTools) works better than element waits. Check out `driver.execute_cdp_cmd('Network.enable', {})` to monitor requests.
For captchas, good luck. Maybe try headless mode with realistic mouse movements? `selenium-stealth` lib might help.
