回复 88# lanxianghui
所有的数据都在一个页面了,这个网站的提交很复杂,我看不明白,可能全是从页面window.HotelQuery = {}提取的,这样反而很容易采了,直接添加http://hotels.ctrip.com/hotel/chongqing4/一页,然后把- allHotels:'19098,23188,73657,51646,26975,22482,81563,80704,20905,73271,63617,63143,21232,56266,75487,25286,66140,83458,5929,24876,45360,46205,25460,84382,20377,65438,5931,48386,5934,17599,45046,51484,52718,54528,75005,62979,12065,62804,46641,57525,11082,75621,82854,79781,80690,46400,85870,21104,63321,19470,16043,20244,12399,26805,84436,80542,80909,78939,67118,54093,83946,66487,85957,78001,84500,66999,46630,77999,8085,64051,48774,80969,82256,82452,79839,46500,52730,77161,64120,82611,70793,72271,13013,21351,72914,21499,73680,79699,79864,75035,54367,85512,52504,62994,47566,67929,85126,62957,83977,82207,80570,79937,72798,85129,65447,56239,84023,84333,77666,79728,83706,85249,80966,83899,78509,73363,82802,82189,79056,25330,85124,84191,76440,86276,73012,80862,78500,86533,79859,80058,84446,79061,50454,80895,82815,85960,63274,81246,82514,73505,84829,65178,74031,86545,82057,84425,79353,80152,80861,81395,77616,82311,82923,71585,81979,52071,82470,26037,65200,65172,48343,47428,82816,48342,62952,14888,55533,79654,81572,66494,65998,20617,22777,73727,47715,21618,75846,6190,66712,25611,20962,47392,76020,56379,72710,67032,57668,79692,48056,56926,80200,19985,67626,63521,81369,65999,64705,76399,77682,72680,45081,19239,78084,46231,64457,72809,78965,81170,13967,22218,74580,77916,52027,56918,81864,81868,75580,73237,63296,82909,64873,50958,48424,82925,81849,83710,80573,80692,78414,80153,66129,68184,81266,81851,83617,55262,83703,81629,77571,83360,67895,82698,84281,80134,83567,75974,85128,79749,74028,81167,62854,47189,44931,85240,74670,47647,79705,80863,63343,57643,57421,79638,81110,82300,77730,52550,84830,75636,67045,75063,76040,70975,46941,83694,83895,82356,84340,62954,81399,46115,46053,56916,57244,48375,66045,64546,82015,56178,52812,45090,62117,57192,48918,67937,45113,65265,26004,17273,20769,56242,76060,24887,62860,74605,85701,77016,46912,52712,80965,84786,64712,75732,47273,85513,84339,80574,78738,65170,84226,79757,84783,77948,47046,85419,85589,43965',
复制代码 用自定义网址循环出来,最前最后2个hotel id,匹配不出,直接添加,这样所有的就采到了,你可以查看最前的是19098,最后页的最后一条id正好是43965
|