抓包

https://ihotel.meituan.com/hbsearch/HotelSearch?utm_medium=pc&version_name=999.9&cateId=20&attr_28=129&uuid=54C2CA53384591B1F49B45480882EF04BA873A02416F93A474E5471D00F936D6%401594028346372&cityId=198&offset=60&limit=20&startDay=20200706&endDay=20200706&q=&sort=defaults&X-FOR-WITH=027tBuVoS%2B3yln%2BuNfmRHQGkwTlCKlcem6D4WdG0SS2ep6wxPgQpKJLaniLsHCuP9w8QTiG1dVrHj7npgpQUHrPmyDqPAaiT%2FQ1BUlmy229kseZXGcqpCWFk7ieHTtCn14%2FDmyT01H9DVGlOtXZQeWXxXmWrJs%2BtwlXZ4zkgpe%2BJrsdZt5EPE98adzT3FGchyfLxVMTgUzuKvL4GEjerUw%3D%3D

简化:

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好

又没钱
https://www.51daili.com/
http://www.etdaili.com/
免费领的只够自用

Last modification:July 7th, 2020 at 08:11 pm
如果觉得我的文章对你有用,请随意赞赏