Skip to content

Commit

Permalink
Update scraper.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-R-Afonso committed Apr 28, 2020
1 parent 0b37c8e commit 0f09d1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.js
Expand Up @@ -60,14 +60,14 @@ function run(db) {
var $ = cheerio.load(body);
next = $('.bloco-paginacao li a').each(function () {
var page = $(this).text().trim();
console.log("pagina: "+page);
if(page != 1){
//console.log("pagina: "+page);
//if(page != 1){
fetchPage("https://www.habinedita.com"+ "/imoveis/?pg="+page+"&o=1&g=1&dd=13&cc=12&nq=2-4&p=-300000&ct=0000000000001&or=10", function (body) {
var $ = cheerio.load(body);
next = $('a.paginacao-nav').attr('href');
var elements = $("div.titulos").each(fetchItem($(this), page));
});
}
//}

});

Expand Down

0 comments on commit 0f09d1d

Please sign in to comment.