Sebastian Alvarez

Results 30 comments of Sebastian Alvarez

You can use the message_reply_to of the callback "only if your bot reply to and message". example: client --> /some_command product-3 bot --> reply to this command with the inline...

> I tried it, still they are detecting me Just overwrite the browser User Agent.

Looks great, add this `if` to support awaitable handlers. ```python # import from inspect import iscoroutinefunction #### def route(self, path: str = '/', methods: list = []): ''' Shorthand route...

``` ((element, selector, { pQuerySelector }) => { return pQuerySelector(element, selector); } //# sourceURL=pptr:evaluateHandle; CDPElementHandle.evaluateHandle (D:\......\node_modules\puppeteer-core\lib\cjs\puppeteer\api\ElementHandle.js:101:28) ) ``` Cloudflare is detecting puppeteer.

elements have query_selector

Just override the user agent before open the page. ```python await tab.send(cdp.network.set_user_agent_override( user_agent=browser.info.get("User-Agent").replace("Headless", "") )) ```

> Yes, but this would be at the tab level and I would like it to be at the browser level like with undetected_chromedriver, that is, if I open new...

> To add more detail, specifically I'm wondering how I can do the equivalent of switching to the iframe; or interact with it as a tag? Trying to emulate the...

> Thanks for the advice! This indeed does allow me to get an iframe element, but the tab switching recommended by @devblack doesn't work, I believe because I cannot see...