Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Module to extract text from HTML

by marto (Cardinal)
on Feb 27, 2024 at 11:29 UTC ( [id://11157918]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use feature 'say';
    ...
    
    my $ua = Mojo::UserAgent->new;
    say $ua->get('https://www.perlmonks.org')->res->dom->all_text;
    
  2. or download this
    use strict;
    use warnings;
    ...
    my $ua = WWW::Mechanize->new;
    $ua->get('https://perlmonks.org');
    say $ua->content(format => 'text');
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-05-26 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found