Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Nov 16, 2014
1 parent 51a08bd commit 86037fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scraper.php
Expand Up @@ -11,10 +11,8 @@
function ripBhidByLetter($letter){
$pathToOverviewByLetter = 'http://service-bw.de/zfinder-bw-web/authorities.do?action=search&letter=';
$bhidpattern = '/bhid=([0-9]*)&/m';

$matchesBhid;

print($pathToOverviewByLetter . $letter . '&page=' . $page);
$output = scraperwiki::scrape($pathToOverviewByLetter . $letter);
preg_match_all($bhidpattern, $output, $matchesBhid);

Expand Down Expand Up @@ -55,7 +53,7 @@ function ripBeidByBhid($bhid, $page) {
}
if (getHighestPageNumber($output) != $page) {
$next = $page+1;
ripBhidByLetter($letter, $next);
ripBeidByBhid($bhid, $next);
}
}

Expand Down

0 comments on commit 86037fd

Please sign in to comment.