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

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2014-07-29 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (217 votes), past polls