I am looking forward to do an spider/scraping application using Perl. Specifically, I want to take all links (url's) in:

https://matchstat.com/tennis/tournaments/(...)

take information of lines like this:

R64    David Ferrer (ESP) 7    Filip Krajinovic (SRB)    1.13    5.50    7-5 7-5 7-6(4)    H2H 2-0     (X)

And scrap (capture) all the text contained in links (marked here with (X)). The link in that example has this url: https://matchstat.com/tennis/match-stats/m/8305102 After that, I'll use regular expressions to choose parameters in captured information. For me is the easy part of all the process because I usually use regex. I found various web scraping frameworks and lot of Perlmonks/stack discussions and blog posts to do that but I'm a little bit lost. And not much help the fact than I need some spider & scrapt functions...

Here are the long list of perl libraries I found!

WWW::Scripter WWW::Scripter::Plugin::JavaScript WWW::Scripter::Plugin::Ajax Web::Scraper Web::Magic Web::Query Mojo/Mojo::DOM XML::LibXML Mozilla::Mechanize Gtk3::WebKit with WWW::WebKit Gtk2::WebKit Wx::Htmlwindow Wx::WebView scrappy Gungho YADA LWP/HTML::Parser

In reply to How can I get all URL's of a domain and get text (scraping)? by bLIGU

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.