D
dysgraphia
Hi, I'm using win xp and have the ActivePerl download.
This is my first attempt at a perl script. It tries to go to the
chessbase site and find the links to chess tournaments in 2006.
What I hope to do is have my script collect the links on the page
listed under Events 2006 and put this collection of links into
an Excel workbook ("C:\ChessEvents.xls"), spreadsheet ("Year2006")
If I progress I will make script to follow some of the links and
retrieve the information about that chess tournament.
I plan to put a button on the spreadsheet to fire the perl script
via some VBA.
So far I have only got this. Any help to push me along
would be appreciated!
#!/usr/bin/perl -w
use LWP::UserAgent;
use HTTP::Cookies;
use LWP;
use HTTP::Request::Common qw(POST GET);
use strict;
use DBI;
use IO:ir;
use LWP:ebug qw(-);
# the chessbase page with list of events is at
# http://www.chessbase.com/events/index.asp and find under Events 2006
my $url = 'http://www.chessbase.com/events/index.asp';
my $ua = LWP::UserAgent->new();
$ua->agent("Mozilla/8.0");
$ua->cookie_jar(HTTP::Cookies->new);
my $res = $ua->request(new HTTP::Request GET => $url);
This is my first attempt at a perl script. It tries to go to the
chessbase site and find the links to chess tournaments in 2006.
What I hope to do is have my script collect the links on the page
listed under Events 2006 and put this collection of links into
an Excel workbook ("C:\ChessEvents.xls"), spreadsheet ("Year2006")
If I progress I will make script to follow some of the links and
retrieve the information about that chess tournament.
I plan to put a button on the spreadsheet to fire the perl script
via some VBA.
So far I have only got this. Any help to push me along
would be appreciated!
#!/usr/bin/perl -w
use LWP::UserAgent;
use HTTP::Cookies;
use LWP;
use HTTP::Request::Common qw(POST GET);
use strict;
use DBI;
use IO:ir;
use LWP:ebug qw(-);
# the chessbase page with list of events is at
# http://www.chessbase.com/events/index.asp and find under Events 2006
my $url = 'http://www.chessbase.com/events/index.asp';
my $ua = LWP::UserAgent->new();
$ua->agent("Mozilla/8.0");
$ua->cookie_jar(HTTP::Cookies->new);
my $res = $ua->request(new HTTP::Request GET => $url);