Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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: (6)
As of 2015-08-05 03:16 GMT
Find Nodes?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...

    Results (76 votes), past polls