tmp9.py 1.1 KB

1234567891011121314151617181920212223
  1. import requests
  2. headers = {
  3. 'accept': '*/*',
  4. 'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8',
  5. 'authorization': 'bearer eyJhbGciOiJIUzI1NiIsImtpZCI6InYxIiwidHlwIjoiSldUIn0.eyJuYW1lIjoidGlhbnl1bnBlcmZlY3QiLCJpc3MiOiJtZW1vcyIsInN1YiI6IjEiLCJhdWQiOlsidXNlci5hY2Nlc3MtdG9rZW4iXSwiaWF0IjoxNzA5MTc5NTUyfQ.LFxWB4efya1sL7VoJ42xpXxbAip-udT_Kx2OwZ8Y3-E',
  6. 'cache-control': 'no-cache',
  7. 'content-type': 'application/json',
  8. 'origin': 'https://web.tianyunperfect.cn',
  9. 'pragma': 'no-cache',
  10. 'priority': 'u=1, i',
  11. 'referer': 'https://web.tianyunperfect.cn/simple/memos.html',
  12. 'sec-ch-ua': '"Chromium";v="128", "Not;A=Brand";v="24", "Google Chrome";v="128"',
  13. 'sec-ch-ua-mobile': '?0',
  14. 'sec-ch-ua-platform': '"macOS"',
  15. 'sec-fetch-dest': 'empty',
  16. 'sec-fetch-mode': 'cors',
  17. 'sec-fetch-site': 'same-site',
  18. 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36',
  19. }
  20. response = requests.get('https://memos.tianyunperfect.cn/api/v1/tag', headers=headers, verify=False)
  21. print(response)