Use our set of finance modules to add finance and market data to your Joomla 1.5 site.

 
Home arrow Purchase arrow Data Aggregating software arrow WebScrapper Perl module
Wednesday, 08 September 2010
 
 
Home
News
My blog
Downloads
Products
Purchase
Articles
Feedback
FAQs
Forum
Featured Products
WebScrapper Perl module
WebScrapper Perl module
$39.00
Add to Cart

Your Cart Module
Show Cart
1 Product,
$39.00
Show Original HTML
If you want to view content without protection than you must to be verified with captcha image.


Please enter the text that you see in the image into the box upper.
PDF
Data Aggregating software arrow WebScrapper Perl module



WebScrapper Perl module


Price: $39.00


WebScrapper Perl module is a library for easy extracting data from HTML pages.

WebScrapper library can be used by perl developers to create application that need extract some dota from web pages.

Simple example:

 

#!/usr/bin/perl -w

use strict;
use WebScrapper;

#creating paser 

my $g=WebScrapper->new(
    ignoretags=>"p,left,b,i,u,strong",
   debuglevel=>0,
   trim=>1,
   url=>'http://amazon.com/s/ref=nb_ss_gw/002-5529856-3560831?url=search-alias%3Daps&field-keywords=perl&Go.x=0&Go.y=0'
);

#creating template 

my $template=<<END;
<td class="imageColumn" ><table>
<tr><td align="center" ><a >
<datatag name="img" -extractfrom="img" -attrforextract="src">
</a></td><td ></td></tr></table></td>
<td class="dataColumn">
<table ><tr>
<td>
<datatag name="link" -extractfrom="a" -attrforextract="href">
<datatag name="title" -pass="span"></a>
<datatag name="author">
<span class="bindingBlock">
<datatag name="null" -pass="all">
<norequired>
<span class="listprice"><datatag name="listprice"></span>
</norequired>

<datatag name="null" -pass="all">
<span class="otherprice"><datatag name="otherprice"></span>

END

#loading template

$g->setTemplate($template);

my (@a,$k,$p);

#extracting data
@a=$g->grabListedData;

#printing data 

foreach $k(@a){
  print "-----------------------------n";
  foreach $p (keys %$k){
   print "$p => $$k{$p}n";
 }
}

 

 

 This script extracts search results from amazon.com site.

More examles here.

Manual here


Availability

Usually ships in:

15min.gif

 


Customer Reviews:

There are yet no reviews for this product.
Please log in to write a review.







 
Top! Top!