抓包
简化:
https://ihotel.meituan.com/hbsearch/HotelSearch?utm_medium=pc&version_name=999.9&cateId=20&attr_28=129&uuid=54C2CA53384591B1F49B45480882EF04BA873A02416F93A474E5471D00F936D6%401594028346372&cityId=&offset=&limit=20&startDay=20200706&endDay=20200706&q=&sort=defaults&X-FOR-WITH=**
offset为当前页数,limit为一页的个数,每次翻页offset+=limit;
cityId为城市ID , 城市id我也抓取了,但是没有保存页面⌇●﹏●⌇
poiId 为酒店的ID
https://hotel.meituan.com/(poiId )/ 这样就可以直接访问酒店页面了
https://hotel.meituan.com/beijing/
https://ihotel.meituan.com/group/v2/poi/detail/service?utm_medium=pc&version_name=999.9&poiId= (ID)
关于代理IP
因为爬多了发现给美团限制了流量,还是得用代理IP好
Comment here is closed