The author uses Guzzle
in the laravel
framework to crawl the data on my homepage, purely out of interest; but the page obtained is the login page;
The author tried this way of writing, but it didn’t work
$response = $this->client->request('GET', '/u/greenlightt/articles', array(
'auth' => [用户名,密码]
));
I hope someone can tell me?
First, you need to simulate login, then save
cookies
, and then use thecookies
you got to crawl other pages. Let’s talk about your problem. . Boss Sunny will laugh like a barbell = =