in reply to Re^2: Scrap shadow DOM website with Perl
in thread Scrap shadow DOM website with Perl

Personally, I like to look at the data first using the developer tools of Firefox or Chrome, and then implement the Websocket client using Mojo::UserAgent.

  • Comment on Re^3: Scrap shadow DOM website with Perl

Replies are listed 'Best First'.
Re^4: Scrap shadow DOM website with Perl
by vpperl (Novice) on Jan 20, 2021 at 15:36 UTC
    Thanks, will take a look!

      So I educated myself a bit with the web developer tools, and I do see some functions that probably are the ones that I might need, like in the code snippet below, however the Mojo::UserAgent parsing doesn't give me any indication for their existance. Is there something that I need to do in order to see those?

      <ft-button class="name" href="/fantasy/dashboard/291187/5083071/19?@pl +ayer-profile=cGxheWVyPTE2MDcwMTtzZWFzb249NjM3O3RvdXJuYW1lbnQ9MjkxMTg3 +O3JvdW5kPTE5">Fernandes</ft-button>

        Use the developer tools to identify the endpoints and what gets passed to/returned by them. Use Mojo::UserAgent to do that very task, send the required data, process the response.