|
|
Up |
|
|
  |
Author: arikarik Date: May 3, 2008 16:58
I wrote a script that scrape information off staples.com and I'm
getting different results if I run it stand alone or I fork the
script.
running the script stand alone I get the expected results and when
forking the script it seems like it ignores the tag. any help
is appreciated:
this is part of the script:
sub GetStaples {
my $oem_PN = $_[0];
my $ItemDesc = $_[1];
my @ItemDesc = split(',',$ItemDesc);
my $Item;
my $price;
my $description;
my $type;
my $title;
my $numofitems;
my $agent = WWW::Mechanize->new(autocheck => 1, cookie_jar =>
undef);
|
| Show full article (1.66Kb) |
|
| | 4 Comments |
|
  |
Author: Ben BullockBen Bullock Date: May 3, 2008 17:09
On Sat, 03 May 2008 16:58:46 -0700, arik wrote:
> $title = $stream->get_trimmed_text("/title");
^^^^^^
> print "Title:".$tile."\n";
^^^^^
use warnings;
use strict;
|
| |
|
| | no comments |
|
  |
Author: Bart LateurBart Lateur Date: May 5, 2008 11:50
Ben Bullock wrote:
>On Sat, 03 May 2008 16:58:46 -0700, arik wrote:
>
>> $title = $stream->get_trimmed_text("/title");
> ^^^^^^
>> print "Title:".$tile."\n";
> ^^^^^
>use warnings;
>use strict;
This guy posted the exact same question on Perlmonks, and,
unsurprisingly, got the exact same reply (second rekly, by ikegami).
http://perlmonks.org/?node_id=684388
I hate it when people are multiposting the same question all over, and
are simply not paying attention to the replies.
--
Bart.
|
| |
| no comments |
|
  |
Author: Ben BullockBen Bullock Date: May 5, 2008 17:25
On Mon, 05 May 2008 20:50:23 +0200, Bart Lateur wrote:
> This guy posted the exact same question on Perlmonks, and,
> unsurprisingly, got the exact same reply (second rekly, by ikegami).
>
> http://perlmonks.org/?node_id=684388
>
> I hate it when people are multiposting the same question all over, and
> are simply not paying attention to the replies.
According to the times on the posts, arik / arikamir posted his question
here via Google Groups at about 12.00 midnight UTC (17.00 his time), then
got an answer from me twenty minutes later (9.20 in the morning my time),
then three and a half hours after I'd posted an answer, apparently
ignoring the answer I'd posted, he went to Perl monks and posted the same
question there.
|
| |
| no comments |
|
  |
|
|
  |
Author: arikarik Date: May 5, 2008 17:51
On May 5, 5:25 pm, Ben Bullock gmail.com> wrote:
> On Mon, 05 May 2008 20:50:23 +0200, Bart Lateur wrote:
>> This guy posted the exact same question on Perlmonks, and,
>> unsurprisingly, got the exact same reply (second rekly, by ikegami).
>
>
>> I hate it when people are multiposting the same question all over, and
>> are simply not paying attention to the replies.
>
> According to the times on the posts, arik / arikamir posted his question
> here via Google Groups at about 12.00 midnight UTC (17.00 his time), then
> got an answer from me twenty minutes later (9.20 in the morning my time),
> then three and a half hours after I'd posted an answer, apparently
> ignoring the answer I'd posted, he went to Perl monks and posted the...
|
| Show full article (1.07Kb) |
| no comments |
|
|
|
|