Skip to content

Commit

Permalink
Adjust README, add link to original sources
Browse files Browse the repository at this point in the history
  • Loading branch information
yukoff committed Sep 12, 2017
1 parent fd38f83 commit 6e7386b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
@@ -1,3 +1,5 @@
This scraper works for the following url

http://www.imdb.com/chart/top
<http://www.imdb.com/chart/top>

> Forked from the <https://classic.scraperwiki.com/scrapers/imdb-top-250/>
2 changes: 1 addition & 1 deletion scraper.php
Expand Up @@ -6,7 +6,7 @@

$html = scraperwiki::scrape("http://www.imdb.com/chart/top");
$html = oneline($html);

print('html: '); print_r($html);
preg_match_all('|<tr bgcolor="#.*?" valign="top"><td align="right"><font face="Arial, Helvetica, sans-serif" size="-1"><b>(.*?)\.</b></font></td><td align="center"><font face="Arial, Helvetica, sans-serif" size="-1">(.*?)</font></td><td><font face="Arial, Helvetica, sans-serif" size="-1"><a href="(.*?)">(.*?)</a> \((.*?)\)</font></td><td align="right"><font face="Arial, Helvetica, sans-serif" size="-1">.*?</font></td></tr>|', $html, $arr);

foreach ($arr[1] as $key => $val) {
Expand Down

0 comments on commit 6e7386b

Please sign in to comment.