Skip Menu |

This queue is for tickets about the Scraper CPAN distribution.

Report information
The Basics
Id: 6615
Status: resolved
Priority: 0/
Queue: Scraper

People
Owner: Nobody in particular
Requestors: juanmarcosmoren [...] terra.es
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: WWW::Scraper::Google : problems
I'm getting the following error: Odd number of elements in anonymous hash at /usr/share/perl5/WWW/Scraper.pm line 120. with the following program: #!/usr/bin/perl -w use strict; use WWW::Scraper; use Data::Dumper; my $search = new WWW::Scraper('Google', 'linux'); Dumper(\$search); What could be the problem? Do you know if WWW::Scraper works with current packages? I'm using perl 5.8.4 with all the modules of Debian Unstable and Scraper-3.05 Is Scraper still maintained?
Jaun Marco - Sorry about the *late* response - I lost a link in my email server chain from CPAN last year. After fixing it, I didn't realize I wouldn't be recieving email from rt.cpan.org, yet. Anyway, this seems an odd response. I've tried to keep Scraper compatible with numerous usage parameters, but looks like I failed here. My next step with Scraper will involve a complete re-architecturing (a major bit of work) that will make parameterization more transparent (and controlled). Unfortunately, I don't think I'll fix this one in this version. Take a look at eg/Scraper.pl for examples of how to make this work by instantiating the Scraper first, then adding search criteria. I hope you can gain some benefit from Scraper in its current version - any feedback about your experience and difficulties will help me do better in the next version. TIA [guest - Sun Jun 13 17:34:19 2004]: Show quoted text
> I'm getting the following error: > Odd number of elements in anonymous hash at > /usr/share/perl5/WWW/Scraper.pm line 120. > > with the following program: > #!/usr/bin/perl -w > use strict; > use WWW::Scraper; > use Data::Dumper; > my $search = new WWW::Scraper('Google', 'linux'); > Dumper(\$search); > > > What could be the problem? > Do you know if WWW::Scraper works with current packages? > I'm using perl 5.8.4 with all the modules of Debian Unstable > and Scraper-3.05 > Is Scraper still maintained?
From: juanmarcosmoren [...] terra.es
[GLENNWOOD - Sun Nov 7 17:22:27 2004]: Show quoted text
> Sorry about the *late* response - I lost a link in my email server > chain > from CPAN last year. After fixing it, I didn't realize I wouldn't be > recieving email from rt.cpan.org, yet. > > Anyway, this seems an odd response. I've tried to keep Scraper > compatible with numerous usage parameters, but looks like I failed > here. > My next step with Scraper will involve a complete re-architecturing (a > major bit of work) that will make parameterization more transparent > (and > controlled). Unfortunately, I don't think I'll fix this one in this > version. > > Take a look at eg/Scraper.pl for examples of how to make this work by > instantiating the Scraper first, then adding search criteria. I hope > you > can gain some benefit from Scraper in its current version - any > feedback > about your experience and difficulties will help me do better in the > next version.
My fix was not using WWW::Scraper but using a module made by myself using WWW::Mechanize I think you should be using WWW::Mechanize to Scrap sites, since it's a lot of work put there and any fixes or API aditions to that module should be more than welcome. Show quoted text
> [guest - Sun Jun 13 17:34:19 2004]:
> > I'm getting the following error: > > Odd number of elements in anonymous hash at > > /usr/share/perl5/WWW/Scraper.pm line 120. > > > > with the following program: > > #!/usr/bin/perl -w > > use strict; > > use WWW::Scraper; > > use Data::Dumper; > > my $search = new WWW::Scraper('Google', 'linux'); > > Dumper(\$search); > > > > > > What could be the problem? > > Do you know if WWW::Scraper works with current packages? > > I'm using perl 5.8.4 with all the modules of Debian Unstable > > and Scraper-3.05 > > Is Scraper still maintained?
[guest - Thu Jul 14 18:27:49 2005]: Juan - Thank you for your suggestion. I just learned about WWW::Mechanize a couple of months ago, but haven't done anything with it for lack of time (or is it that my time is consumed by other more urgent interests?). Mechanize is interesting, all right. As I said, Scraper should have an overhaul - are you interested in helping? I've received missives from a few interested parties, but it's not a critical mass yet. We would start with a design overview, certainly including Mechanize. There's always a lot of new things to do, and a surprising plethora of things to learn (together?) . . . P.S. Your English is a *lot* better than my Spanish <snip> Show quoted text
> My fix was not using WWW::Scraper but using a module made by myself > using WWW::Mechanize > I think you should be using WWW::Mechanize to Scrap sites, since it's > a > lot of work put there and any fixes or API aditions to that module > should be more than welcome. > >
</snip>