MCPcopy Create free account
hub / github.com/datehoer/hotToday / get_anquanke_data

Function get_anquanke_data

anquanke/anquanke.py:3–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import requests
2import time
3def get_anquanke_data():
4 url = "https://www.anquanke.com/webapi/api/index/top/list"
5 params = {
6 "page": 1,
7 "_": int(time.time()*1000)
8 }
9 res = requests.get(url, params=params, timeout=30)
10 res_json = res.json()
11 return res_json

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected