screen scraping technique using php

前端 未结 6 1480
你的背包
你的背包 2020-12-20 07:10

How to screen scrape a particular website. I need to log in to a website and then scrape the inner information. How could this be done?

Please guide me.

6条回答
  •  一个人的身影
    2020-12-20 07:22

    Curl, and once ure in, use QueryPath php library. (querypath.org) You can access dom elements just like in JQuery, via CSS selectors, there's method chaining...

    Way better than just using php's native xml functions.

    It also works as drupal extension, but I suppose you could implement it in any php project.

提交回复
热议问题