Scraping from a website that requires a login?

前端 未结 5 1974
旧时难觅i
旧时难觅i 2020-12-17 04:30

Can this be done if so, how? I want to scrape data from xbox.com but the pages I need to scrape only appear after a successful login.

5条回答
  •  旧巷少年郎
    2020-12-17 05:33

    You will have to go through the required login transaction by sending POST data with your CURL requests. That said, it is a bad idea to scrape data from behind a login - the site didn't put that information in the public for a reason, and for you to do so might constitute copyright infringement,

提交回复
热议问题