CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [wisnoskij] Perl Documentation: Edit Log



Zhris
Enthusiast

Feb 19, 2013, 2:36 PM


Views: 519
Re: [wisnoskij] Perl Documentation

Hey,

It appears that your knowledge of Web::Scraper has greatly improved since your original post.

In answer to your query "I still do not understand why the syntax of this package is this way", the module does not construct its object in the conventional manner. In Perl, there are many ways to achieve equal outcomes, do not necessarily regard Web::Scraper as a model example.

Remember that Web::Scraper is basically an interface to more extensive classes, with the benefit of simplifying the core scraping process for the programmer. In your instance, it uses HTML::Selector::XPath to parse css selectors into an xpath, usable by HTML::TreeBuilder::XPath, which does the initial html parsing. If Web::Scraper doesn't do what you need directly due to limitations, use these and other classes to do what you need indirectly.

Your example above looks to have covered the core syntax / functionality achievable through Web::Scraper.

Chris


(This post was edited by Zhris on Feb 19, 2013, 2:47 PM)


Edit Log:
Post edited by Zhris (Enthusiast) on Feb 19, 2013, 2:38 PM
Post edited by Zhris (Enthusiast) on Feb 19, 2013, 2:38 PM
Post edited by Zhris (Enthusiast) on Feb 19, 2013, 2:41 PM
Post edited by Zhris (Enthusiast) on Feb 19, 2013, 2:42 PM
Post edited by Zhris (Enthusiast) on Feb 19, 2013, 2:42 PM
Post edited by Zhris (Enthusiast) on Feb 19, 2013, 2:43 PM
Post edited by Zhris (Enthusiast) on Feb 19, 2013, 2:45 PM
Post edited by Zhris (Enthusiast) on Feb 19, 2013, 2:46 PM
Post edited by Zhris (Enthusiast) on Feb 19, 2013, 2:47 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives