Does PHP have a "virtual browser"?

Hi

I want to extract data from a website, but it uses some weird javascript, so I can not do the work with cURL. I want to know if there is something like a virtual browser that opens a page, and I can trigger a click on some buttons?

If there is no executable program to perform this task through the command line?

+3
source share
1 answer

You have several options:

Is there a PHP equivalent of Perl WWW :: Mechanize?

This one looks like it will fit the bill: ScriptableBrowser - http://www.lastcraft.com/browser_documentation.php

EDIT. , Javascript. Ruby Python, PHP. , . - Selenium, , .

:

JavaScript?

http://pypi.python.org/pypi/DOMForm/0.0.1a/

+5

Source: https://habr.com/ru/post/1755768/


All Articles