Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: how to extract iframes from text

by Anonymous Monk
on Apr 30, 2013 at 21:18 UTC ( #1031478=note: print w/ replies, xml ) Need Help??

in reply to Re: how to extract iframes from text
in thread how to extract iframes from text

found what i wanted:

my $collection = Mojo::DOM->new($args->{'body'})->find('iframe'); my @links; my $cpt = 0; foreach (@$collection) { $links[$cpt] = $_->{src}; print STDERR Dumper($_->{src}); # access elements of iframe with -> $cpt++; }
thanks you u'r help

Comment on Re^2: how to extract iframes from text
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2015-11-29 18:04 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (752 votes), past polls