Web Scraping - PHP script to get the HTML of a webpage after javascript loaded

Lengkap Disiarkan 5 tahun lepas Dibayar semasa penghantaran
Lengkap Dibayar semasa penghantaran

I would need a PHP function that is returning the html code of a webpage after the javascripts have been executed. At the moment if you CURL the page, the html won't look the same but it would be quite empty so it requires using something like v8js which is already installed on the server.

The function should be able to return the html for different websites (even ajax) after the js have been executed.

The function would look like
function getHtmlAfterJS($url)
{// here is the code
return $html;
}

$url is the URL of the website
$html is the HTML code of the website after the JS was executed.

AJAX HTML JavaScript PHP Web Scraping

ID Projek: #17983971

Tentang projek

6 cadangan Projek jarak jauh Aktif 5 tahun lepas

Dianugerahkan kepada:

idaniel13

Hi, If you already have nodejs installed on the server why not use that to do the scraping with a headless chromium. You can even have an express api’ Thank you, Daniel

$60 USD dalam sehari
(19 Ulasan)
4.1

6 pekerja bebas membida secara purata $28 untuk pekerjaan ini

Yknox

Hello~!! I am Gang Lee and I read your post. But I have something to ask you. Your idea is amazing and it will change the world! I am a magic talented developer in your skill. If you wanna be the success, hire me Lagi

$25 USD dalam sehari
(659 Ulasan)
8.9
HadiDar786

ok got it ... this will be done according to your requiremnets .i am expert in curl php .. . message me so we can proceed further....thanks...................

$25 USD dalam sehari
(49 Ulasan)
5.5
MohanKumar28

Hi, I have checked the requirements. Will do this script using PHP. I'm available to start now. Please share additional details. Regards, Mohan

$20 USD dalam sehari
(66 Ulasan)
5.4