import json
import requests
from common import tunnel_proxies

url = "https://jdfqw.wentingyou.cn/index.php/v111/index/index"
obj = {"cid":"","page":1,"is_ads":1}
w = json.dumps(obj)
# params = {}
headers = {
  'Host': 'jdfqw.wentingyou.cn',
  'chatkey': 'wx79ef316d416e5da1',
  'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 MicroMessenger/6.8.0(0x16080000) NetType/WIFI MiniProgramEnv/Mac MacWechat/WMPF MacWechat/3.8.5(0x13080510)XWEB/1100',
  'content-type': 'application/x-www-form-urlencoded',
  'xweb_xhr': '1',
  'vision': '1.1.0',
  'token': '',
  'accept': '*/*',
  'referer': 'https://servicewechat.com/wx79ef316d416e5da1/1/page-frame.html',
  'accept-language': 'en-US,en;q=0.9'
}


response = requests.request("GET", url, headers=headers, params={"parameter": w}, proxies=tunnel_proxies())
print(response.url)

print(json.dumps(response.json(), ensure_ascii=False, indent=4))
