Skip to content

Commit

Permalink
Stringify the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Maischein committed Jun 20, 2024
1 parent af1174c commit feae0cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/scrape-yaml.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit feae0cb

Please sign in to comment.