()
| 1 | import requests |
| 2 | import time |
| 3 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected