"http://$user:$psw@$proxy", ])->get($url); if ($response->successful()) { $html_content = $response->body(); OSSUploader::uploadFile('r2', '/scraped/', $slug.'.html', $html_content); } } //dump("Initial: " . strlen($html_content)); $readability = new Readability(new Configuration()); try { $readability->parse($html_content); $html_content = strip_tags($readability->getContent()); //dd($readability); } catch (ParseException $e) { } //dump("After: " . strlen($html_content)); return $html_content; } }