Skip to content

Commit

Permalink
Automatic update to make ScraperWiki scraper work on Morph
Browse files Browse the repository at this point in the history
  • Loading branch information
dirgatarigan committed Mar 29, 2015
1 parent 7d67477 commit 24fc40b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.php
@@ -1,4 +1,5 @@
<?php
require 'scraperwiki.php';
require 'scraperwiki/simple_html_dom.php';

$startProductId = scraperwiki::get_var("currentId", -1);
Expand All @@ -13,7 +14,7 @@
}

scraperwiki::attach("hobbyking_batteryidlist");
$batteries = scraperwiki::select("id from hobbyking_batteryidlist.swdata where id > $startProductId order by id asc");
$batteries = scraperwiki::select("id from hobbyking_batteryidlist.data where id > $startProductId order by id asc");
$remainingCount = count($batteries);

print "Found $remainingCount batteries left to be scraped.";
Expand Down

0 comments on commit 24fc40b

Please sign in to comment.