Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^3: Mojo::DOM parsing question

by marto (Cardinal)
on Jul 17, 2020 at 08:29 UTC ( #11119452=note: print w/replies, xml ) Need Help??

in reply to Re^2: Mojo::DOM parsing question
in thread Mojo::DOM parsing question

Is there more than one abstract per html page? My example uses foreach to print the text for each match we find, using the selector which matches your requirement. See find. If you know for sure that each page has one abstract you could do something like my $abstract = $dom->at('div.abstract-content > p')->text;. If you post the error you have maybe I can provide more help, see also How do I post a question effectively?. In your example $abstr will contain the number of matches.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2020-10-27 16:39 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (257 votes). Check out past polls.