Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sohin committed Sep 27, 2014
1 parent 1dae9a4 commit 53f7d7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.php
Expand Up @@ -4,15 +4,15 @@
require 'scraperwiki/simple_html_dom.php';

$page = 1;
$url = "http://www.ebay.com/sch/i.html?_trksid=p5197.m570.l1313&_nkw=korean+war&_sacat=0" ;
$url = "http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2050601.m570.l1313.TR0.TRC0.H0.XAmerican+Revolutionary+War&_nkw=American+Revolutionary+War&_sacat=0" ;

while (true)
{
$html = scraperWiki::scrape( $url );
$dom = new simple_html_dom();
$dom->load($html);

$results = $dom->find("a[@itemprop='name']");
$results = $dom->find("a[@class='lvtitle']");
print " found " . count($results) . " results on page " . $page . "\n";

foreach($results as $data)
Expand Down

0 comments on commit 53f7d7e

Please sign in to comment.