screen scraping technique using php

前端 未结 6 1455
你的背包
你的背包 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:23

    You want to look at the curl functions - they will let you get a page from another website. You can use cookies or HTTP authentication to log in first then get the page you want, depending on the site you're logging in to.

    Once you have the page, you're probably best off using regular expressions to scrape the data you want.

提交回复
热议问题