From c822611e968026f7c70c2dba8cb6dc0c3b569109 Mon Sep 17 00:00:00 2001 From: mycwnet <36975600+mycwnet@users.noreply.github.com> Date: Tue, 25 Sep 2018 18:37:16 -0700 Subject: [PATCH] Update scraper.php --- scraper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scraper.php b/scraper.php index 1b5ed38..7d79360 100644 --- a/scraper.php +++ b/scraper.php @@ -12,12 +12,11 @@ $dom->load($html); $movies=$dom->find('.titleColumn'); -$ids=[]; foreach($dom->find('td.titleColumn') as $movie) { preg_match('#.*?([1-9][0-9]{0,2})\..*?innertext, $match); - scraperwiki::save_sqlite(['rank','imdb_id'],['rank'=>$match[1],'imdb_id'=>$match[2]]); + scraperwiki::save_sqlite(['imdb_id'],['rank'=>$match[1],'imdb_id'=>$match[2]]); } ?>