1.分析
通过charles来抓取薄荷app的数据包,分析数据包的链接地址
搜索到的数据:http://food.boohee.com/fb/v1/search?q={要搜索的食材}&page={页数}
食材详情:https://food.boohee.com/fb/v1/foods/{食材的code}.json 或者http://food.boohee.com/fb/v1/foods/{食材的code}/mode_show 或者https://ifood.boohee.com/v2/ifoods/{食材的code}/show_with_light
食物类别: https://food.boohee.com/fb/v1/food_rankings?page={页数}
某一食物类别中的top食物:https://food.boohee.com/fb/v1/food_rankings/{食物类别的id}.json
2.爬取