Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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 having an uproarious good time at the Monastery: (18)
As of 2016-02-11 19:17 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (377 votes), past polls