import os
import random
import time
import requests
from spider.get_ip import getIpList, getHeader
from utils.read_write import writeOneCsv, readCsv, writeOneJson, readJson, writeCsv, writeOneTxt
from utils.time_change import timestamp_datetime
save_dir = r"F:\data\other\meituan\txt\\"
proxys = getIpList()
headers = getHeader()
os.chdir(r"F:\data\other\meituan")
def search(id):
url = "http://www.dianping.com/ajax/json/shopDynamic/allReview?shopId={}&cityId=1474&shopType=35&tcv=0qu8u5dlnr&_token=eJxVj1tvgkAQhf%2FLPhPYhUVZEh%2FUaipCKSxso40PFKwiFwU2XDT9711TfWgyyTnzzZlk5gbqVQJMBCHESALtvgYmQDKUR0ACvBETnYwxQtgYYc2QQPyfEUIk8FWzF2B%2BIqJCiWjj3Z34AvwRBA24k54eC69iUffUSoTAkfOLqShd18lJGpWXtDzI8blQmuP5orzq%2FuLEr%2By9HVWGWvbiKCA2i0BsCs0eGj2UP3tHfCGyTXoohdtbfUAb3FTfvtMEIXSCxB8GsqZUHewY2TT