matchArticle_dev2.py 456 B

1234567891011121314151617181920212223
  1. """
  2. @author: luojunhui
  3. """
  4. import json
  5. import time
  6. import requests
  7. url = "http://47.99.132.47:8888/matchArticleV2"
  8. body = {
  9. "taskId": "Article_489a1168-b0bb-430f-97ca-196963ef1f82_1718784492"
  10. }
  11. a = time.time()
  12. header = {
  13. "Content-Type": "application/json",
  14. }
  15. response = requests.post(url, json=body, headers=header, timeout=600)
  16. b = time.time()
  17. print(b - a)
  18. print(response.text)
  19. print(json.dumps(response.json(), ensure_ascii=False, indent=4))