in reply to Re^2: searching with mojo dom
in thread searching with mojo dom

I'm thinking if i could figure out how to do a div find that would be easiest -- i have my @headers = $dom->find('div ~ today_nowcard-sidecar')->map('text')->each; but it doesn't seem to find anything...

Replies are listed 'Best First'.
Re^4: searching with mojo dom
by adambot (Acolyte) on Mar 11, 2018 at 22:28 UTC

    working more on this, Here is the search code that works:

    @data = $dom->find('div.today_nowcard-sidecar')->each;

    Now i'm left trying to dig through all the data -- when i go through the array i find that the info i need is represented in the dom identified by ${$VAR1}->{'tree'}->[4]->[5]->[4]->[5]->[4] (data gotten using Data::Dumper on @data). Any pointers?