| line |
true |
false |
branch |
|
95
|
5 |
10 |
if defined $self->api_token |
|
96
|
12 |
3 |
if (defined $body) |
|
125
|
0 |
1 |
unless defined $task_id and length $task_id |
|
133
|
0 |
2 |
unless defined $url and length $url |
|
135
|
1 |
1 |
if defined $opts{'wait_for'} |
|
136
|
1 |
1 |
if defined $opts{'output_path'} |
|
139
|
1 |
0 |
$opts{'wait_for_images'} ? : |
|
|
1 |
1 |
if exists $opts{'wait_for_images'} |
|
146
|
0 |
1 |
unless defined $url and length $url |
|
148
|
1 |
0 |
if defined $opts{'output_path'} |
|
154
|
0 |
1 |
unless defined $url and length $url |
|
160
|
0 |
4 |
unless defined $url and length $url |
|
161
|
2 |
2 |
unless ref $scripts eq "ARRAY" |
|
162
|
2 |
2 |
unless @$scripts and defined $scripts->[0] |
|
168
|
0 |
1 |
unless defined $url and length $url |
|
169
|
0 |
1 |
unless defined $query and length $query |
|
177
|
1 |
0 |
defined $opts{'provider'} ? : |
|
|
1 |
0 |
defined $opts{'temperature'} ? : |
|
|
0 |
1 |
defined $opts{'base_url'} ? : |
|
184
|
0 |
1 |
unless defined $email and length $email |
|
186
|
0 |
1 |
if defined $opts{'api_token'} |
|
192
|
4 |
1 |
if $request->$WWW::Crawl4AI::Client::_isa("WWW::Crawl4AI::Request") |
|
193
|
1 |
0 |
if ref $request eq "HASH" |
|
205
|
9 |
0 |
length $body ? : |
|
206
|
1 |
8 |
unless ($res->is_success) |
|
229
|
0 |
0 |
unless ref $data |
|
238
|
0 |
0 |
unless defined $id |
|
247
|
0 |
0 |
if ($status eq "COMPLETED") |
|
249
|
0 |
0 |
if defined $results |
|
252
|
0 |
0 |
if ($status eq "FAILED") |
|
265
|
0 |
0 |
unless $res->is_success |
|
267
|
0 |
0 |
if ref $data |
|
286
|
3 |
0 |
ref $data eq 'HASH' ? : |
|
287
|
1 |
2 |
unless (defined $b64 and length $b64) |
|
301
|
1 |
0 |
ref $data eq 'HASH' ? : |
|
310
|
1 |
0 |
ref $data eq 'HASH' ? : |
|
311
|
1 |
0 |
ref $data eq 'HASH' ? : |
|
319
|
1 |
0 |
ref $data eq 'HASH' ? : |
|
333
|
0 |
1 |
unless defined $data |
|
334
|
0 |
1 |
if ref $data eq "ARRAY" |
|
335
|
1 |
0 |
if (ref $data eq "HASH") |
|
337
|
0 |
1 |
unless my $v = $data->{$key} |
|
338
|
1 |
0 |
if ref $v eq "ARRAY" |
|
339
|
0 |
0 |
if ref $v eq "HASH" |
|
342
|
0 |
0 |
if exists $data->{'markdown'} or exists $data->{'html'} or exists $data->{'success'} |
|
349
|
0 |
2 |
unless ref $page eq "HASH" |
|
371
|
2 |
0 |
unless ref $h eq "HASH" |
|
382
|
2 |
0 |
unless ref $links eq "HASH" |
|
391
|
0 |
0 |
unless ref $list eq "ARRAY" |
|
397
|
0 |
0 |
unless ref $link eq "HASH" |
|
399
|
0 |
0 |
unless defined $text and length $text |
|
422
|
0 |
0 |
unless $self->is_request($req) |
|
427
|
0 |
0 |
if $res->is_success |
|
431
|
0 |
0 |
if ($retryable and $attempt < $max) |
|
433
|
0 |
0 |
if (my $ra = $res->header("Retry-After")) |
|
434
|
0 |
0 |
if $ra =~ /^\d+$/ |
|
436
|
0 |
0 |
if $self->on_retry |
|
442
|
0 |
0 |
if (not $res->is_success and $res->code == 599) |
|
467
|
0 |
0 |
$url->$WWW::Crawl4AI::Client::_isa('WWW::Crawl4AI::Request') ? : |
|
486
|
0 |
0 |
if $@ or not $res |
|
487
|
0 |
0 |
$self->parse_health_response($res) ? : |