8 |
|
|
9 |
our $q = 'AD=Croatia'; |
our $q = 'AD=Croatia'; |
10 |
my $range_size = 500; |
my $range_size = 500; |
11 |
my $overlap = 10; # between previous and this range |
my $overlap = 3; # between previous and this range |
|
|
|
|
$q = 'TS=psychology AND AD=Croatia' if @ARGV; # FIXME debug |
|
12 |
|
|
13 |
my $max_cites = 5000; # ISI limit to get cites |
my $max_cites = 5000; # ISI limit to get cites |
14 |
our @ranges; |
|
15 |
|
if ( 0 ) { |
16 |
|
$q = 'TS=psychology AND AD=Croatia'; |
17 |
|
$range_size = 50; |
18 |
|
$overlap = 0; |
19 |
|
$max_cites = 50; |
20 |
|
} |
21 |
|
|
22 |
use WWW::Mechanize; |
use WWW::Mechanize; |
23 |
use Data::Dump qw(dump); |
use Data::Dump qw(dump); |
29 |
); |
); |
30 |
|
|
31 |
our $step = 0; |
our $step = 0; |
32 |
|
our @ranges; |
33 |
|
|
34 |
my $dir = '/tmp/isi/'; |
my $dir = '/tmp/isi/'; |
35 |
rmtree $dir if -e $dir; |
rmtree $dir if -e $dir; |
211 |
if ( @ranges ) { |
if ( @ranges ) { |
212 |
$part .= $ranges[0]->[0] . '.'; |
$part .= $ranges[0]->[0] . '.'; |
213 |
search; |
search; |
214 |
|
citations; |
215 |
} |
} |
216 |
$part .= 'citing'; |
$part .= 'citing'; |
217 |
get_results $part; |
get_results $part; |