$(price).each(function(i,price){
console.log($(price).text() + '\n');
});
$(opisanie_k).each(function(i,opisanie_k){
console.log($(opisanie_k).text() + '\n');
});
var request = require('request');
var cheerio = require('cheerio');
var searchTerm = 'screen+scraping';
var page_counter = 2, url;
var jQuery = require('jQuery');
while (page_counter < 6) {
url = 'http://www.domofond.ru/prodazha-kvartiry-belgorod-c310?Page="'+(page_counter++)+'"&SortOrder=Newest';
request(url, function(err, resp, body){
$ = cheerio.load(body);
price = $('p.pull-left.df_listingTilePrice'); //цена
opisanie_k = $('p.df_listingTileType'); //краткое
place = $('p.df_listingTileAddress'); //адрес
opisanie_full = $('div.df_listingTileDescription')//полное описание
$(price).each(function(i,price){
console.log($(price).text() + '\n');
});
$(opisanie_k).each(function(i,opisanie_k){
console.log($(opisanie_k).text() + '\n');
});
$(place).each(function(i,place){
console.log($(place).text() + '\n');
});
$(opisanie_full).each(function(i,opisanie_full){
console.log($(opisanie_full).text() + '\n');
});
});
}