Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
flowscrap committed Apr 1, 2015
1 parent 7d47595 commit 8a7778d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scraper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
require 'scraperwiki.php';
require 'scraperwiki/simple_html_dom.php';

$html = scraperwiki::scrape("http://www.topannonces.fr/annonces-immobilier-u7.html?type=1");
$html = scraperwiki::scrape("http://www.topannonces.fr/annonces-immobilier-u7.html");

$dom = new simple_html_dom();
$dom->load($html);
$annonces = $dom->find("h3[class=classifiedTitre] a")->href;
$annonces = $dom->find("#classifiedresults a.boldblue")->href;

foreach ($annonces as $annonce) {
$annonce_html = scraperwiki::scrape($annonce);
$annonceDom = new simple_html_dom();
Expand Down

0 comments on commit 8a7778d

Please sign in to comment.