Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $title_id = 'tt3721954';
- $title_id = 'tt0460681';
- $link = 'http://www.imdb.com/title/' . $title_id . '/';
- $imdb_html = file_get_contents($link);
- $dom = new DOMDocument();
- libxml_use_internal_errors(true);
- $dom->loadHTML($imdb_html);
- $xpath = new DOMXPath($dom);
- var_dump(
- $xpath->evaluate('string(//div[@class="poster"])')
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement