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 15, 2014
1 parent e3eb4c7 commit 7e0a47e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.php
Expand Up @@ -18,7 +18,7 @@
$urlpattern = '/<ul class="kontaktliste">.*<li class="internet">.*<a href="(.*)".*>.*<\/a>.*<\/li>/iUs';

$idpattern = '/BHW&amp;id=(.*)!0/';
while ($currentPage <= 2) {
while ($currentPage <= $TotalPageCount) {
$html = scraperwiki::scrape("http://amt24.sachsen.de/ZFinder/search.do;jsessionid=QLr92E0v7nVp+yix1AQyd5Vn.zufi2_1?modul=WE&searchtextdone=&searchtext=***&filter=3&page=".$currentPage);
preg_match_all($idpattern, $html, $matches);
foreach ($matches[1] as $value){
Expand Down Expand Up @@ -59,7 +59,7 @@
$jurisdiction__slug = 'saxony';

scraperwiki::save_sqlite(array('data'), array('name' => $name,'email' => $email, 'address' => $adress, 'contact' => $contact, 'jurisdiction__slug' => $jurisdiction__slug, 'other_names' => '', 'description' => '', 'topic__slug' => '', 'parent__name' => '', 'classification' => '', 'url' => $url, 'website_dump' => '', 'request_note' => ''));

print $name;
}
$currentPage++;
}
Expand Down

0 comments on commit 7e0a47e

Please sign in to comment.