1、环境介绍:
win10 64bit
python 3.6.0
openpyxl 2.4.2(操作excel)
2、目的
根据区域统计该区域附近的外卖商家总数、和所有商家的月销售情况
3、网页截图
首先我们通过这张图能发现
URL请求是:https://mainsite-restapi.ele.me/v2/pois?extras%5B%5D=count&geohash=wx4g0bmjetr7&keyword=%E6%9C%9D&limit=20&type=nearby
request_headers:
accept:application/json, text/plain, */*
accept-encoding:gzip, deflate, sdch, br
accept-language:zh-CN,zh;q=0.8
cookie:ubt_ssid=plds7ye19rj2rghg3oaar8hkt89yy7f1_2017-02-07; _utrace=ac9073c509bedb74b28a1482bd95a9d8_2017-02-07
origin:https://www.ele.me
referer:https://www.ele.me/home/
user-agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit