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 |
12 |
|
my $skip_results = 1; |
|
$q = 'TS=psychology AND AD=Croatia' if @ARGV; # FIXME debug |
|
13 |
|
|
14 |
my $max_cites = 5000; # ISI limit to get cites |
my $max_cites = 5000; # ISI limit to get cites |
15 |
our @ranges; |
|
16 |
|
if ( 0 ) { |
17 |
|
$q = 'TS=psychology AND AD=Croatia'; |
18 |
|
$range_size = 50; |
19 |
|
$overlap = 0; |
20 |
|
$max_cites = 50; |
21 |
|
} |
22 |
|
|
23 |
use WWW::Mechanize; |
use WWW::Mechanize; |
24 |
use Data::Dump qw(dump); |
use Data::Dump qw(dump); |
30 |
); |
); |
31 |
|
|
32 |
our $step = 0; |
our $step = 0; |
33 |
|
our @ranges; |
34 |
|
|
35 |
my $dir = '/tmp/isi/'; |
my $dir = '/tmp/isi/'; |
36 |
rmtree $dir if -e $dir; |
rmtree $dir if -e $dir; |
202 |
|
|
203 |
search; |
search; |
204 |
years; |
years; |
205 |
get_results; |
get_results unless $skip_results; |
206 |
|
|
207 |
|
|
208 |
citations; |
citations; |
212 |
if ( @ranges ) { |
if ( @ranges ) { |
213 |
$part .= $ranges[0]->[0] . '.'; |
$part .= $ranges[0]->[0] . '.'; |
214 |
search; |
search; |
215 |
|
citations; |
216 |
} |
} |
217 |
$part .= 'citing'; |
$part .= 'citing'; |
218 |
get_results $part; |
get_results $part; |