Good morning,
I'm creating a Crawler to go to a specific page and then get some specific data from the page, but I'm having problems.
At this point I am trying to perform a test in instagram, my code is as follows:
$client = new Client();
$request = $client->request('GET', 'https://www.instagram.com/user/');
return response()->json( $request->getBody() );
However, at the moment I'm going to get getBody's print is returning empty {}
, I've also tried to add a second parameter to get the data, as follows:
return response()->json( $request->getBody()->getContents() );
When using getContents is returning me little html and the remaining javascript, due to this I believe the error may be in the way I am calling.