Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
require 'vendor/autoload.php';
$client = new \Goutte\Client();
$crawler = $client->request('GET', 'https://www.imdb.com/title/tt2015381/reviews?ref_=tt_urv');
$results = [];
$results = $crawler->filter('.title')->each(function ($node) use ($results) {
array_push($results, $node->text());
return $results;
});
print_r($results);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment