Getting page content

Hello!

Initial condition: There is a page that has content generates JavaScript.

Question: How to get the content of the page using Curl and PHP.
October 8th 19 at 03:12
5 answers
October 8th 19 at 03:14
Solution
1. nodejs
2. seleniumhq.org/ - caterina.Emard61 commented on October 8th 19 at 03:17
2 — gorgeous, but there is no libs for PHP :(
Have yet to start learning Ruby :) - Jamison commented on October 8th 19 at 03:20
And the problem, then what? In Selenium you can write in PHP... What is your job? - caterina.Emard61 commented on October 8th 19 at 03:23
Indeed, and about the selenium I forgot =) In his side is also worth a look, maybe it will be even easier. - aniya.Kertzmann65 commented on October 8th 19 at 03:26
pypi.python.org/pypi/selenium - caterina.Emard61 commented on October 8th 19 at 03:29
October 8th 19 at 03:16
Any way, the content generated on the client. You can only shemaleroute this action by repeating what JS is doing. There is the same WebKit, it is free and open automation has not been canceled.
Accidentally supati for these purposes it's not necessary? May not WebKit, but something else? - caterina.Emard61 commented on October 8th 19 at 03:19
The other options are not suitable more than your own crafts using WebKit. The task is highly specific. You for good is to understand how the content generated on the page. Perhaps what will come up. I remember for one project I wrote JS apercu for a single domestic product, which also generate content on the client, this apercu connected as the user the script and pull the data through it. There is just WebKit and used, but that was long ago and I remember only the essence. - Jamison commented on October 8th 19 at 03:22
And there are PHP libraries to work in webkit? - caterina.Emard61 commented on October 8th 19 at 03:25
October 8th 19 at 03:18
If there is ajax then you need to look at what file it sends the request and take the result.
For example, index page script is a request for some.php
$.ajax({<br> type: "POST",<br> url: "some.php"<br> data: "name=John&location=Boston",<br> })
And then work with some.php
October 8th 19 at 03:20
unfortunately there isn't an ajax content generated by javascript without third-party challenges...
October 8th 19 at 03:22
Heh, found this thing
Yes, there is on viagra more than documentation! O_O - caterina.Emard61 commented on October 8th 19 at 03:25

Find more questions by tags PHPWeb DevelopmentJavaScript