Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mycwnet committed Sep 19, 2018
1 parent d5c2cce commit 42ce835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.php
Expand Up @@ -18,7 +18,7 @@
$ids=[];
foreach($dom->find('td.titleColumn a') as $link) {
echo $movies->plaintext;
preg_match('/.*?\/title\/(.+)?\/', $link->href, $match);
preg_match('#.*?\/title\/(.+)?\/#', $link->href, $match);
$ids[]=$match[1];
}
print_r($ids);
Expand Down

0 comments on commit 42ce835

Please sign in to comment.