1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Getting a HTTP Response with nodriver

Discussão em 'Python' iniciado por Stack, Setembro 11, 2024.

  1. Stack

    Stack Membro Participativo

    I'm using nodriver and it's not directly supporting network methods. But it does support for several CDP objects (network: https://ultrafunkamsterdam.github.io/nodriver/nodriver/cdp/network.html) and using it via tab.send().

    So I did hope that someone already used it to get a Response or sending a Request with generating a Header from the actual browser session or something like that...

    I'm parsing a website where I don't get all information in the HTML code, I need to get the Response that gets triggered by an action on the website.

    I'm too new to Python (and I'm not very experienced with programming at all ^^'), so I have no clue where to start... I even tried to feed the documentation to Gemini (Advanced), but Gemini said, that I can't read responses with nodriver, even if I use CDP to create a Request and send it.

    But in the CDP COMMANDS I have "enable" (Enables network tracking, network events will now be delivered to the client.) and "get_response_body" (Returns content served for the given request.) and I can't believe that it's not possible.

    Continue reading...

Compartilhe esta Página