Skip to content

Commit

Permalink
teste
Browse files Browse the repository at this point in the history
  • Loading branch information
flavin27 committed Dec 15, 2023
1 parent e77a8d4 commit af9859e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Scraper.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,8 @@ private function fetchContent(): string
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $this->url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3',
]);
$content = curl_exec($ch);
curl_close($ch);
return $content;
Expand Down

0 comments on commit af9859e

Please sign in to comment.