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 10f477c commit ab982d5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scraper.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ function run(db) {
next = $('a.paginacao-nav').attr('href');
var elements = $("div.titulos").each(function () {
console.log($(this));
//var titulo = $('span.span_imovel_titulo').text().trim();
//var nome = $('span.lbl_preco').text().trim();
//var url = $('a.lnk_titulo').attr('href');
//console.log(titulo+" "+nome+" "+url);
$(this).
var titulo = $('div.titulos > span.span_imovel_titulo').text().trim();
var nome = $('div.titulos > span.lbl_preco').text().trim();
var url = $('div.titulos > a.lnk_titulo').attr('href');
console.log(titulo+" "+nome+" "+url);
//items++;
//console.log(items);
//updateRow(db, nome, url);
Expand Down

0 comments on commit ab982d5

Please sign in to comment.