Changeset 3 for trunk/biblehal-pop
- Timestamp:
- Apr 1, 2011, 12:01:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/biblehal-pop
r2 r3 2 2 # 3 3 # gabriel 2010/06/03 4 # gabriel 2011/04/01 update to biblehal 4 5 # 5 6 # apt-get install libwww-mechanize-perl libwww-perl … … 11 12 use HTML::Form; 12 13 13 my $year = shift @ARGV; 14 15 die "Usage /usr/lib/biblehal/biblehal-pop year\n" if $year < 1990 or $year > 2020; 14 my $laboratory = shift @ARGV; 15 my $year = shift @ARGV; 16 17 die "Usage /usr/lib/biblehal/biblehal-pop laboratory year\n" if $year < 1990 or $year > 2020; 16 18 17 19 mkdir '/var/cache/biblehal/download', 0750; … … 88 90 89 91 # On intègre le second formulaire qui se remplit normalement via un javascript 90 my $parser = HTML::Form->parse("$F", 'http://hal.archives-ouvertes.fr/LEGI');92 my $parser = HTML::Form->parse("$F", "http://hal.archives-ouvertes.fr/$laboratory"); 91 93 print($@) if $@; 92 94 #print Dumper $parser; … … 94 96 95 97 # Création du bot 96 my $url = 'http://hal.archives-ouvertes.fr/LEGI';98 my $url = "http://hal.archives-ouvertes.fr/$laboratory"; 97 99 my $bot = WWW::Mechanize->new; 98 100 $bot->proxy(['http', 'ftp'], 'http://194.254.66.70:3128');
Note: See TracChangeset
for help on using the changeset viewer.