From feae0cb18e8335443221d6873b0a64afd0203be6 Mon Sep 17 00:00:00 2001 From: Max Maischein Date: Thu, 20 Jun 2024 20:51:10 +0200 Subject: [PATCH] Stringify the URL --- script/scrape-yaml.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/scrape-yaml.pl b/script/scrape-yaml.pl index 98a2ec9..f55ce49 100644 --- a/script/scrape-yaml.pl +++ b/script/scrape-yaml.pl @@ -96,12 +96,14 @@ ($config, @items) my @rows; for my $item (@items) { + my $url = $item =~ m!^http! ? $item : sprintf "", $item; push @rows, $scraper->scrape( ua => $scraper, cache => \%cache, start_rule => $scrape_item, config => $config, item => $item, + #url => $item, # why do we want/need this? We have ->make_url already... )->@*; }; output_data( $config, $output_type, \@rows );