Changeset 3
- Timestamp:
- Apr 1, 2011, 12:01:42 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 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'); -
trunk/biblehal-popall
r2 r3 2 2 # 3 3 # gabriel 2010/06/03 4 # gabriel 2011/04/01 update to biblehal 4 5 5 6 export PATH="/bin:/usr/bin:/usr/lib/biblehal" 6 7 7 8 9 if [ -f /etc/biblehal/biblehal.conf ] 10 then 11 . /etc/biblehal/biblehal.conf 12 fi 13 14 if "z${LABORATORY}" = "z" ] 15 then 16 echo "LABORATORY must be configure in /etc/biblehal/biblehal.conf" 17 exit 1 18 fi 19 20 8 21 for year in 1990 1994 1995 1996 1997 $(seq 1999 $(date +%Y)) 9 22 do 10 biblehal-pop $ year23 biblehal-pop ${LABORATORY} ${year} 11 24 12 biblehal-explode $ year25 biblehal-explode ${year} 13 26 done 14 -
trunk/biblehal-poplast
r2 r3 2 2 # 3 3 # gabriel 2010/06/15 4 # gabriel 2011/04/01 update to biblehal 4 5 5 6 export PATH="/bin:/usr/bin:/usr/lib/biblehal" 6 7 7 8 9 if [ -f /etc/biblehal/biblehal.conf ] 10 then 11 . /etc/biblehal/biblehal.conf 12 fi 13 14 if "z${LABORATORY}" = "z" ] 15 then 16 echo "LABORATORY must be configure in /etc/biblehal/biblehal.conf" 17 exit 1 18 fi 19 20 8 21 for year in $(( $(date +%Y) -1 )) $(date +%Y) 9 22 do 10 biblehal-pop $ year23 biblehal-pop ${LABORATORY} ${year} 11 24 12 biblehal-explode $ year25 biblehal-explode ${year} 13 26 done 14
Note: See TracChangeset
for help on using the changeset viewer.