Получить Значения С Сайта

Тема в разделе "HTML, CSS, XML, JavaScript", создана пользователем chief1973, 24 авг 2013.

  1. chief1973

    chief1973 New Member

    Регистрация:
    24 авг 2013
    Сообщения:
    1
    Симпатии:
    0
    Здравствуйте. У меня такой вопрос
    Есть сайт tourindex.ru, где можно получить таблицу по турам (вверху Demo-режим), затем Поиск тура (выделен красным), выбираем любую страну, далее справа кнопка Искать туры

    Формируется таблица с турами - я хочу спарсить из нее данные, но при просмотре исходного кода страницы нет самих данных, а есть JS код наподобии:



    </div>
    <!-- ######### // CENTER COLUMN ############ -->
    </td>
    </tr>
    </tbody></table>
    <script type="text/javascript" defer="defer">
    $(function(){
    var result_page_filters = lsjs.ti.filters.set('result_page_filters', {tour_type:'tt',country:'co',city:'ct',online:'online',room_size:'rs',child_age1:'ch1',child_age2:'ch2',weekday_st:'wd_st',weekday_sn:'wd_sn',datef:'df',datet:'dt',nightf:'nf',nightt:'nt',_cache:'_cache',allspo:'as',pricef:'pf',pricet:'pt',currency:'cur',building_type:'bt',room_apart_type:'rat',room_class:'rcl',room_char:'rch',room_view_type:'rvt',meal:'me',operator_online:'op_onl',operator_class:'opc',operator:'op',resort:'re',resort_place:'rpl',hotels_fav:'hv_onl',alloccat:'ac',allocation:'al',alloc_place_type:'apt',alloc_place_value:'apv',alloclet:'let',expert:'exp',premium:'premium',tour_excurs:'t_exc',stop:'st',last_days:'ld',page:'_p',page_size:'_ps',hide_com:'hide_com',hide_op:'hide_op',group_by:'grp',allocat_rate:'alr',ticket:'ti_tp',is_subagent:'is_sub',fortuna:'ft'}, {tour_type:1,country:6,city:1000,online:0,room_size:14,datef:'26-08-2013',datet:'09-09-2013',nightf:7,nightt:7,currency:'RUB',operator_online:0,expert:0,search_type:1,premium:0,page_size:50,group_by:'price',allocat_rate:0,ticket:1} , '/filters/?__setid=result_page');
    var __filter = false;
    result_page_filters.setOptions({});__filter = lsjs.ti.filters.head.tourtype('tour_type', {0:{name:'tour_type',nick:'tt',type:1,_default:1},1:{name:'country',nick:'co',type:1},2:{name:'city',nick:'ct',type:1}} ,document.getElementById('div_filter_tourtype'), {loadTitle:'&#x0417;&#x0430;&#x0433;&#x0440;&#x0443;&#x0437;&#x043a;&#x0430;...'});
    __filter.setDepends(['city','country','operator','allocation','resort','building_type','room_view_type','room_apart_type','room_class','meal','online','duration','room_size','is_subagent','room_char','alloc_place_type','alloc_place_value','al_restrict','alloccat','allocat_rate','fortuna']);result_page_filters.addFilter(__filter);
    __filter = lsjs.ti.filters.head.country('country', {0:{name:'country',nick:'co',type:1},1:{name:'city',nick:'ct',type:1,_default:0}} ,document.getElementById('div_filter_country'), {loadTitle:'&#x0417;&#x0430;&#x0433;&#x0440;&#x0443;&#x0437;&#x043a;&#x0430;...'});
    __filter.setDepends(['tour_type','allocation','resort','building_type','room_view_type','room_apart_type','room_class','meal','city','online','room_size','duration','alloccat','allocat_rate','operator','room_char','alloc_place_type','alloc_place_value','al_restrict','fortuna']);result_page_filters.addFilter(__filter);
    __filter = lsjs.ti.filters.head.city('city', {0:{name:'city',nick:'ct',type:1}} ,document.getElementById('div_filter_city'), {loadTitle:'&#x0417;&#x0430;&#x0433;&#x0440;&#x0443;&#x0437;&#x043a;&#x0430;...'});
    __filter.setDepends(['tour_type','allocation','resort','building_type','room_view_type','room_apart_type','room_class','meal','country','online','room_size','alloccat','allocat_rate','operator','duration','room_char','alloc_place_type','alloc_place_value','al_restrict','fortuna']);result_page_filters.addFilter(__filter);
    __filter = lsjs.ti.filters.online('online', {0:{name:'online',nick:'online',type:5}} ,document.getElementById('div_filter_online'), {loadTitle:'&#x0417;&#x0430;&#x0433;&#x0440;&#x0443;&#x0437;&#x043a;&#x0430;...'});
    __filter.setDepends(['allocation','alloccat','resort','building_type','room_view_type','room_apart_type','room_class','meal','country','tour_type','city','duration','room_size','is_subagent','operator','room_char','alloc_place_type','alloc_place_value','al_restrict','allocat_rate','expert','premium','excursions']);result_page_filters.addFilter(__filter);
    __filter = lsjs.ti.filters.search.roomSize('room_size', {0:{name:'room_size',nick:'rs',type:1,_default:14},1:{name:'child_age1',nick:'ch1',type:6},2:{name:'child_age2',nick:'ch2',type:6}} ,document.getElementById('div_filter_room_size'), {loadTitle:'&#x0417;&#x0430;&#x0433;&#x0440;&#x0443;&#x0437;&#x043a;&#x0430;...',room_size:14,default_room_size:14});
    __filter.setDepends(['duration','allocation','resort','alloccat','building_type','room_view_type','room_apart_type','room_class','room_char','meal','operator','operator_class']);result_page_filters.addFilter(__filter);
    __filter = lsjs.ti.filters.search.dates('dates', {0:{name:'weekday_st',nick:'wd_st',type:5},1:{name:'weekday_sn',nick:'wd_sn',type:5},2:{name:'datef',nick:'df',type:3},3:{name:'datet',nick:'dt',type:3}} ,document.getElementById('div_filter_dates'), {loadTitle:'&#x0417;&#x0430;&#x0433;&#x0440;&#x0443;&#x0437;&#x043a;&#x0430;...',df:'26-08-2013',dt:'09-09-2013',wd_st:0,wd_sn:0});
    result_page_filters.addFilter(__filter);
    __filter = lsjs.ti.filters.search.duration('duration', {0:{name:'nightf',nick:'nf',type:1},1:{name:'nightt',nick:'nt',type:1},2:{name:'_cache',nick:'_cache',type:2},3:{name:'allspo',nick:'as',type:1}} ,document.getElementById('div_filter_duration'), {default_nf:7,default_nt:7,nf:7,nt:7});
    __filter.setDepends([]);result_page_filters.addFilter(__filter);
    __filter = lsjs.ti.filters.price('price', {0:{name:'pricef',nick:'pf',type:2},1:{name:'pricet',nick:'pt',type:2},2:{name:'currency',nick:'cur',type:2}} ,document.getElementById('div_filter_price'), {loadTitle:'&#x0417;&#x0430;&#x0433;&#x0440;&#x0443;&#x0437;&#x043a;&#x0430;...',currs:{0:{id:'RUB',ticker:'&#x0440;&#x0443;&#x0431;'},1:{id:'UAH',ticker:'&#x0433;&#x0440;&#x043d;'},2:{id:'USD',ticker:'$'},3:{id:'EUR',ticker:'&#x20ac;'}},pricef:'',pricet:'',currency:'RUB'});
    result_page_filters.addFilter(__filter);

    Как достать данные?
     
Загрузка...

Поделиться этой страницей