W
W
wcoder2012-02-19 23:47:33
PHP
wcoder, 2012-02-19 23:47:33

Getting page content

Hello!

Initial condition: There is a certain page, the content of which is generated by JavaScript.

Question: How to get the content of such a page using Curl and PHP.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
K
Konstantin, 2012-02-20
@wcoder

1.nodejs

A
Anatoly, 2012-02-20
@taliban

No, the content is generated on the client. You can only simulate this action by repeating what JS does. There is the same webkit, it is free and open, no one canceled the automation.

V
Vitali Borovik, 2012-02-20
@WAYS

If there is ajax, then you need to look at which file it sends a request and take the result from it.
For example, from the page index in the script, a request is made to some.php And only then work with some.php
$.ajax({
type: "POST",
url: "some.php",
data: "name=John&location=Boston",
})

W
wcoder, 2012-02-20
@wcoder

unfortunately there is no ajax - the content is generated by javascript itself without third-party calls ...

W
wcoder, 2012-02-20
@wcoder

Hehe, I found this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question