Permalink
Browse files

updated searches

  • Loading branch information...
1 parent d3ab82f commit 5c46e89fb61ebecf415f0c2b3f8bb7bb0863bcf9 @martintajur committed Mar 7, 2013
Showing with 86 additions and 85 deletions.
  1. +86 −85 index.js
View
@@ -258,122 +258,123 @@ var scraper = function(bindNext) {
'19': 'Viimsi vald'
}
- // KV.ee majad Harjumaal
- kvSearch('maja', 'http://www.kv.ee/?act=search.simple&deal_type=3&county=1&parish=0&energy_cert_val=0&price_min=' + config.search.maja.minHind + '&price_max=' + config.search.maja.maxHind + '&price_type=1&keyword=&search=Otsi&recent=1&orderby=cdwl');
-
- // KV.ee korterid rõduga Tallinnas
+ /* ----------------------------------------------- */
+
+ // KV.ee majaosad Saku vallas
setTimeout(function() {
- kvSearch('korter-rodu', 'http://www.kv.ee/?act=search.simple&deal_type=1&county=1&parish=421&county=1&parish=0&energy_cert_val=0&price_min=' + config.search.korter.minHind + '&price_max=' + config.search.korter.maxHind + '&price_type=1&keyword=rõdu&search=Otsi&recent=1&orderby=cdwl&rooms_min=' + config.search.korter.minTube + '&rooms_max=&area_min=' + config.search.korter.minSuurus);
- }, 1500)
+ kvSearch('majaosa', 'http://www.kv.ee/?act=search.simple&company_id=&broker_id=&recent=0&coords=&price_m2_min=0&price_m2_max=0&bid_objects=&years_default=20&deposite_in_percents_default=30&intress_default=3.5&agent=0age_size=100&deal_type=11&county=1&parish=16&energy_cert_val=0&price_min=' + config.search.majaosa.minHind + '&price_max=' + config.search.majaosa.maxHind + '&price_type=1&keyword=&floors_min=&floors_max=&area_total_min=' + config.search.majaosa.minSuurus + '&area_total_max=&area_ground_min=&area_ground_max=&search=Otsi&orderby=cdwl&recent=1');
+ }, 4500);
- // KV.ee korterid terrassiga Tallinnas
+ // KV.ee majaosad Viimsi vallas
setTimeout(function() {
- kvSearch('korter-terrass', 'http://www.kv.ee/?act=search.simple&deal_type=1&county=1&parish=421&county=1&parish=0&energy_cert_val=0&price_min=' + config.search.korter.minHind + '&price_max=' + config.search.korter.maxHind + '&price_type=1&keyword=terrass&search=Otsi&recent=1&orderby=cdwl&rooms_min=' + config.search.korter.minTube + '&rooms_max=&area_min=' + config.search.korter.minSuurus);
- }, 3000);
+ kvSearch('majaosa', 'http://www.kv.ee/?act=search.simple&company_id=&broker_id=&recent=0&coords=&price_m2_min=0&price_m2_max=0&bid_objects=&years_default=20&deposite_in_percents_default=30&intress_default=3.5&agent=0age_size=100&deal_type=11&county=1&parish=19&energy_cert_val=0&price_min=' + config.search.majaosa.minHind + '&price_max=' + config.search.majaosa.maxHind + '&price_type=1&keyword=&floors_min=&floors_max=&area_total_min=' + config.search.majaosa.minSuurus + '&area_total_max=&area_ground_min=&area_ground_max=&search=Otsi&orderby=cdwl&recent=1');
+ }, 10500);
- // KV.ee majaosad Harjumaal
+ // KV.ee majaosad Harku vallas
setTimeout(function() {
- kvSearch('majaosa', 'http://www.kv.ee/?act=search.simple&company_id=&broker_id=&recent=0&coords=&price_m2_min=0&price_m2_max=0&bid_objects=&years_default=20&deposite_in_percents_default=30&intress_default=3.5&agent=0age_size=100&deal_type=11&county=1&parish=0&energy_cert_val=0&price_min=' + config.search.majaosa.minHind + '&price_max=' + config.search.majaosa.maxHind + '&price_type=1&keyword=&floors_min=&floors_max=&area_total_min=' + config.search.majaosa.minSuurus + '&area_total_max=&area_ground_min=&area_ground_max=&search=Otsi&orderby=cdwl&recent=1');
+ kvSearch('majaosa', 'http://www.kv.ee/?act=search.simple&company_id=&broker_id=&recent=0&coords=&price_m2_min=0&price_m2_max=0&bid_objects=&years_default=20&deposite_in_percents_default=30&intress_default=3.5&agent=0age_size=100&deal_type=11&county=1&parish=3&energy_cert_val=0&price_min=' + config.search.majaosa.minHind + '&price_max=' + config.search.majaosa.maxHind + '&price_type=1&keyword=&floors_min=&floors_max=&area_total_min=' + config.search.majaosa.minSuurus + '&area_total_max=&area_ground_min=&area_ground_max=&search=Otsi&orderby=cdwl&recent=1');
+ }, 12500);
+
+ // EkspressKinnisvara majaosad Harjumaal
+ setTimeout(function() {
+ ekspressKinnisvaraSearch('majaosa', 'http://www.ekspresskinnisvara.ee/est/otsing/?ot=7&obj=0&t=1&m=1&lv=0&la=0&yp_a=' + config.search.majaosa.minSuurus + '&yp_k=&ks_a=&ks_k=&l1=2&h_a=' + config.search.majaosa.minHind + '&pk=1&h_k=' + config.search.majaosa.maxHind + '&l2=2&h2_a=&h2_k=&ea_a=&ea_k=&ta_a=&ta_k=&kv_a=&kv_k=&om=0&sk=0&my=0&m6=0&mt=0&lv2=0&ky=0&sort=U&sa=1&q=&otsi_bt.x=39&otsi_bt.y=17&fid=&mid=&__acform__reqid=');
}, 4500);
- // KV.ee maamajad
+ // City24.ee majaosad Viimsi vallas
setTimeout(function() {
- kvSearch('maamaja', 'http://www.kv.ee/?act=search.simple&deal_type=3&county=0&parish=0&energy_cert_val=0&price_min=' + config.search.maamaja.minHind + '&price_max=' + config.search.maamaja.maxHind + '&price_type=1&keyword=&search=Otsi&recent=1&orderby=cdwl');
- }, 6000);
+ city24Search('majaosa', { pageId: '4', objId: 'SearchObject', stateId: 'ShowResults', eventId: '', search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"), search_reo_type: 'HOUSE_PART', search_trans: 'TRANSACTION_SALE', search_county: 'COUNTY_HARJUMAA', search_city: 'CITY_V_VIIMSI', search_area1: config.search.majaosa.minSuurus, search_price1: config.search.majaosa.minHind, search_price2: config.search.majaosa.maxHind, search_size: 100 });
+ }, 3000);
- // EkspressKinnisvara korterid Tallinnas rõduga
- ekspressKinnisvaraSearch('korter-rodu', 'http://www.ekspresskinnisvara.ee/est/otsing/?ot=1&obj=0&t=1&m=1&lv=1&la=0&yp_a=' + config.search.korter.minSuurus + '&yp_k=&ks_a=&ks_k=&l1=2&h_a=' + config.search.korter.minHind + '&pk=1&h_k=' + config.search.korter.maxHind + '&l2=2&h2_a=&h2_k=&ea_a=&ea_k=&ta_a=' + config.search.korter.minTube + '&ta_k=&kv_a=&kv_k=&om=0&sk=0&my=0&m6=0&mt=0&lv2=0&ky=0&sort=U&Vk=1&q=&r6=1&otsi_bt.x=46&otsi_bt.y=8&fid=&mid=&__acform__reqid=');
+ // City24.ee majaosad Saku vallas
+ setTimeout(function() {
+ city24Search('majaosa', { pageId: '4', objId: 'SearchObject', stateId: 'ShowResults', eventId: '', search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"), search_reo_type: 'HOUSE_PART', search_trans: 'TRANSACTION_SALE', search_county: 'COUNTY_HARJUMAA', search_city: 'CITY_V_SAKU', search_area1: config.search.majaosa.minSuurus, search_price1: config.search.majaosa.minHind, search_price2: config.search.majaosa.maxHind, search_size: 100 });
+ }, 18000);
- // EkspressKinnisvara korterid Tallinnas terrassiga
+ // City24.ee majaosad Harku vallas
setTimeout(function() {
- ekspressKinnisvaraSearch('korter-terrass', 'http://www.ekspresskinnisvara.ee/est/otsing/?ot=1&obj=0&t=1&m=1&lv=1&la=0&yp_a=' + config.search.korter.minSuurus + '&yp_k=&ks_a=&ks_k=&l1=2&h_a=' + config.search.korter.minHind + '&pk=1&h_k=' + config.search.korter.maxHind + '&l2=2&h2_a=&h2_k=&ea_a=&ea_k=&ta_a=' + config.search.korter.minTube + '&ta_k=&kv_a=&kv_k=&om=0&sk=0&my=0&m6=0&mt=0&lv2=0&ky=0&sort=U&Vk=1&q=&te=1&otsi_bt.x=46&otsi_bt.y=8&fid=&mid=&__acform__reqid=');
- }, 1500);
+ city24Search('majaosa', { pageId: '4', objId: 'SearchObject', stateId: 'ShowResults', eventId: '', search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"), search_reo_type: 'HOUSE_PART', search_trans: 'TRANSACTION_SALE', search_county: 'COUNTY_HARJUMAA', search_city: 'CITY_V_HARKU', search_area1: config.search.majaosa.minSuurus, search_price1: config.search.majaosa.minHind, search_price2: config.search.majaosa.maxHind, search_size: 100 });
+ }, 21000);
+
+
+ /* -------------------------------------------------- */
+
+
+ // KV.ee majad Saku vallas
+ kvSearch('maja', 'http://www.kv.ee/?act=search.simple&deal_type=3&county=1&parish=16&energy_cert_val=0&price_min=' + config.search.maja.minHind + '&price_max=' + config.search.maja.maxHind + '&price_type=1&keyword=&search=Otsi&recent=1&orderby=cdwl');
+ // KV.ee majad Viimsi vallas
+ setTimeout(function() {
+ kvSearch('maja', 'http://www.kv.ee/?act=search.simple&deal_type=3&county=1&parish=19&energy_cert_val=0&price_min=' + config.search.maja.minHind + '&price_max=' + config.search.maja.maxHind + '&price_type=1&keyword=&search=Otsi&recent=1&orderby=cdwl');
+ }, 10000);
+
+ // KV.ee majad Harku vallas
+ setTimeout(function() {
+ kvSearch('maja', 'http://www.kv.ee/?act=search.simple&deal_type=3&county=1&parish=3&energy_cert_val=0&price_min=' + config.search.maja.minHind + '&price_max=' + config.search.maja.maxHind + '&price_type=1&keyword=&search=Otsi&recent=1&orderby=cdwl');
+ }, 8000);
+
// EkspressKinnisvara majad Harjumaal
setTimeout(function() {
ekspressKinnisvaraSearch('maja', 'http://www.ekspresskinnisvara.ee/est/otsing/?ot=2&obj=0&t=1&m=1&lv=0&la=0&yp_a=%27&yp_k=&ks_a=&ks_k=&l1=2&h_a=' + config.search.maja.minHind + '&h_k=' + config.search.maja.maxHind + '&pk=1&l2=2&h2_a=&h2_k=&ea_a=&ea_k=&ta_a=%27&ta_k=&kv_a=&kv_k=&om=0&sk=0&my=0&m6=0&mt=0&lv2=0&ky=0&sort=U&q=&otsi_bt.x=38&otsi_bt.y=12&fid=&mid=&__acform__reqid=');
}, 3000);
- // EkspressKinnisvara majaosad Harjumaal
+ // City24.ee majad Viimsi vallas
+ city24Search('maja', { pageId: '4', objId: 'SearchObject', stateId: 'ShowResults', eventId: '', search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"), search_reo_type: 'HOUSE_HOUSE', search_trans: 'TRANSACTION_SALE', search_county: 'COUNTY_HARJUMAA', search_city: 'CITY_V_VIIMSI', search_price1: config.search.maja.minHind, search_price2: config.search.maja.maxHind, search_size: 100 });
+
+ // City24.ee majad Saku vallas
setTimeout(function() {
- ekspressKinnisvaraSearch('majaosa', 'http://www.ekspresskinnisvara.ee/est/otsing/?ot=7&obj=0&t=1&m=1&lv=0&la=0&yp_a=' + config.search.majaosa.minSuurus + '&yp_k=&ks_a=&ks_k=&l1=2&h_a=' + config.search.majaosa.minHind + '&pk=1&h_k=' + config.search.majaosa.maxHind + '&l2=2&h2_a=&h2_k=&ea_a=&ea_k=&ta_a=&ta_k=&kv_a=&kv_k=&om=0&sk=0&my=0&m6=0&mt=0&lv2=0&ky=0&sort=U&sa=1&q=&otsi_bt.x=39&otsi_bt.y=17&fid=&mid=&__acform__reqid=');
- }, 4500);
+ city24Search('maja', { pageId: '4', objId: 'SearchObject', stateId: 'ShowResults', eventId: '', search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"), search_reo_type: 'HOUSE_HOUSE', search_trans: 'TRANSACTION_SALE', search_county: 'COUNTY_HARJUMAA', search_city: 'CITY_V_SAKU', search_price1: config.search.maja.minHind, search_price2: config.search.maja.maxHind, search_size: 100 });
+ }, 15000);
+
+ // City24.ee majad Harku vallas
+ setTimeout(function() {
+ city24Search('maja', { pageId: '4', objId: 'SearchObject', stateId: 'ShowResults', eventId: '', search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"), search_reo_type: 'HOUSE_HOUSE', search_trans: 'TRANSACTION_SALE', search_county: 'COUNTY_HARJUMAA', search_city: 'CITY_V_HARKU', search_price1: config.search.maja.minHind, search_price2: config.search.maja.maxHind, search_size: 100 });
+ }, 15000);
+
+
+ /* ------------------------------------------ */
+
+
+ // KV.ee maamajad
+ setTimeout(function() {
+ kvSearch('maamaja', 'http://www.kv.ee/?act=search.simple&deal_type=3&county=0&parish=0&energy_cert_val=0&price_min=' + config.search.maamaja.minHind + '&price_max=' + config.search.maamaja.maxHind + '&price_type=1&keyword=&search=Otsi&recent=1&orderby=cdwl');
+ }, 6000);
+
+ // City24.ee maamajad
+ setTimeout(function() {
+ city24Search('maamaja', { pageId: '4', objId: 'SearchObject', stateId: 'ShowResults', eventId: '', search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"), search_reo_type: 'HOUSE_HOUSE', search_trans: 'TRANSACTION_SALE', search_price1: config.search.maamaja.minHind, search_price2: config.search.maamaja.maxHind, search_size: 100 });
+ }, 1500);
// EkspressKinnisvara maamajad
setTimeout(function() {
ekspressKinnisvaraSearch('maamaja', 'http://www.ekspresskinnisvara.ee/est/otsing/?ot=2&obj=1&t=1&m=0&lv=0&la=0&yp_a=&yp_k=&ks_a=800&ks_k=&l1=2&h_a=' + config.search.maamaja.minHind + '&h_k=' + config.search.maamaja.maxHind + '&l2=2&h2_a=&h2_k=&ea_a=&ea_k=&ta_a=&ta_k=&kv_a=&kv_k=&om=4&sk=0&my=0&m6=0&mt=0&lv2=0&ky=0&sort=U&pk=1&q=&otsi_bt.x=45&otsi_bt.y=10&fid=&mid=&__acform__reqid=');
}, 6000);
- // City24.ee majad Harjumaal
- city24Search('maja', {
- pageId: '4',
- objId: 'SearchObject',
- stateId: 'ShowResults',
- eventId: '',
- search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"),
- search_reo_type: 'HOUSE_HOUSE',
- search_trans: 'TRANSACTION_SALE',
- search_county: 'COUNTY_HARJUMAA',
- search_price1: config.search.maja.minHind,
- search_price2: config.search.maja.maxHind,
- search_size: 100
- });
- // City24.ee maamajad
+ /* ------------------------------------------ */
+
+
+ // KV.ee korterid rõduga Tallinnas
setTimeout(function() {
- city24Search('maamaja', {
- pageId: '4',
- objId: 'SearchObject',
- stateId: 'ShowResults',
- eventId: '',
- search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"),
- search_reo_type: 'HOUSE_HOUSE',
- search_trans: 'TRANSACTION_SALE',
- search_price1: config.search.maamaja.minHind,
- search_price2: config.search.maamaja.maxHind,
- search_size: 100
- });
- }, 1500);
+ kvSearch('korter-rodu', 'http://www.kv.ee/?act=search.simple&deal_type=1&county=1&parish=421&county=1&parish=0&energy_cert_val=0&price_min=' + config.search.korter.minHind + '&price_max=' + config.search.korter.maxHind + '&price_type=1&keyword=rõdu&search=Otsi&recent=1&orderby=cdwl&rooms_min=' + config.search.korter.minTube + '&rooms_max=&area_min=' + config.search.korter.minSuurus);
+ }, 1500)
- // City24.ee majaosad Harjumaal
+ // KV.ee korterid terrassiga Tallinnas
setTimeout(function() {
- city24Search('majaosa', {
- pageId: '4',
- objId: 'SearchObject',
- stateId: 'ShowResults',
- eventId: '',
- search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"),
- search_reo_type: 'HOUSE_PART',
- search_trans: 'TRANSACTION_SALE',
- search_county: 'COUNTY_HARJUMAA',
- search_area1: config.search.majaosa.minSuurus,
- search_price1: config.search.majaosa.minHind,
- search_price2: config.search.majaosa.maxHind,
- search_size: 100
- });
+ kvSearch('korter-terrass', 'http://www.kv.ee/?act=search.simple&deal_type=1&county=1&parish=421&county=1&parish=0&energy_cert_val=0&price_min=' + config.search.korter.minHind + '&price_max=' + config.search.korter.maxHind + '&price_type=1&keyword=terrass&search=Otsi&recent=1&orderby=cdwl&rooms_min=' + config.search.korter.minTube + '&rooms_max=&area_min=' + config.search.korter.minSuurus);
}, 3000);
- // City24.ee korterid Tallinnas
+ // EkspressKinnisvara korterid Tallinnas rõduga
+ ekspressKinnisvaraSearch('korter-rodu', 'http://www.ekspresskinnisvara.ee/est/otsing/?ot=1&obj=0&t=1&m=1&lv=1&la=0&yp_a=' + config.search.korter.minSuurus + '&yp_k=&ks_a=&ks_k=&l1=2&h_a=' + config.search.korter.minHind + '&pk=1&h_k=' + config.search.korter.maxHind + '&l2=2&h2_a=&h2_k=&ea_a=&ea_k=&ta_a=' + config.search.korter.minTube + '&ta_k=&kv_a=&kv_k=&om=0&sk=0&my=0&m6=0&mt=0&lv2=0&ky=0&sort=U&Vk=1&q=&r6=1&otsi_bt.x=46&otsi_bt.y=8&fid=&mid=&__acform__reqid=');
+
+ // EkspressKinnisvara korterid Tallinnas terrassiga
setTimeout(function() {
- city24Search('korter', {
- pageId: '4',
- objId: 'SearchObject',
- stateId: 'ShowResults',
- eventId: '',
- search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"),
- search_reo_type: 'REO_APPARTMENT',
- search_trans: 'TRANSACTION_SALE',
- search_county: 'COUNTY_HARJUMAA',
- search_price1: config.search.korter.minHind,
- search_price2: config.search.korter.maxHind,
- search_size: 100,
- search_area1: config.search.korter.minSuurus,
- search_rooms1: config.search.korter.minTube,
- search_is_last_floor: true,
- search_has_elevator: true,
- search_has_sauna: true,
- search_has_balcony: true
- });
+ ekspressKinnisvaraSearch('korter-terrass', 'http://www.ekspresskinnisvara.ee/est/otsing/?ot=1&obj=0&t=1&m=1&lv=1&la=0&yp_a=' + config.search.korter.minSuurus + '&yp_k=&ks_a=&ks_k=&l1=2&h_a=' + config.search.korter.minHind + '&pk=1&h_k=' + config.search.korter.maxHind + '&l2=2&h2_a=&h2_k=&ea_a=&ea_k=&ta_a=' + config.search.korter.minTube + '&ta_k=&kv_a=&kv_k=&om=0&sk=0&my=0&m6=0&mt=0&lv2=0&ky=0&sort=U&Vk=1&q=&te=1&otsi_bt.x=46&otsi_bt.y=8&fid=&mid=&__acform__reqid=');
+ }, 1500);
+
+ // City24.ee korterid rõduga viimasel korrusel Tallinnas
+ setTimeout(function() {
+ city24Search('korter-terrass', { pageId: '4', objId: 'SearchObject', stateId: 'ShowResults', eventId: '', search_oldest: new moment().subtract('days', 4).format("DD.MM.YYYY"), search_reo_type: 'REO_APPARTMENT', search_trans: 'TRANSACTION_SALE', search_county: 'COUNTY_HARJUMAA', search_price1: config.search.korter.minHind, search_price2: config.search.korter.maxHind, search_size: 100, search_area1: config.search.korter.minSuurus, search_rooms1: config.search.korter.minTube, search_is_last_floor: true, search_has_elevator: true, search_has_sauna: true, search_has_balcony: true });
}, 4500);
+
};

0 comments on commit 5c46e89

Please sign in to comment.