How can I scrape website content in PHP from a website that requires a cookie login?
问题 My problem is that it doesn\'t just require a basic cookie, but rather asks for a session cookie, and for randomly generated IDs. I think this means I need to use a web browser emulator with a cookie jar? I have tried to use Snoopy, Goutte and a couple of other web browser emulators, but as of yet I have not been able to find tutorials on how to receive cookies. I am getting a little desperate! Can anyone give me an example of how to accept cookies in Snoopy or Goutte? Thanks in advance! 回答1: