my $url = 'https://www.digikey.com/products/en?vendor=0&keywords='.$query.''; Log::Log4perl->easy_init($ERROR); # Set priority of root logger to ERROR my $mech = WWW::Mechanize::Chrome-> new(); $mech->get($url); my $html = $mech->content;