How to get content of a javascript/ajax -loaded div on a site?

后端 未结 5 910
走了就别回头了
走了就别回头了 2021-02-09 13:02

I have a PHP-script that loads page-content from another website by using CURL and simple_html_dom PHP library. This works great. If I echo out the HTML returned I can see the d

5条回答
  •  隐瞒了意图╮
    2021-02-09 13:31

    Yes its piece of cake if you are interested only in that particular html which is returned by ajax.

    1. Gather information like url, parameters and request type (post/get) from that ajax request.
    2. Generate the same request from your php/curl code and you got it.
    3. And hope that server logic will not check who sent the request.

提交回复
热议问题