Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: searching with mojo dom

by adambot (Acolyte)
on Mar 11, 2018 at 20:42 UTC ( [id://1210684]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1210684]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-03-29 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found