article_list.py 385 B

123456789101112131415161718192021
  1. """
  2. @author: luojunhui
  3. """
  4. import requests
  5. url = "http://localhost:6060/title_list"
  6. response = requests.request(
  7. "POST",
  8. url=url,
  9. headers={},
  10. json={
  11. "account_name": "趣味晚年",
  12. "index_list": [1, 2],
  13. "min_time": None,
  14. "max_time": None,
  15. "msg_type": "9"
  16. }
  17. )
  18. print(response.json())
  19. print(len(response.json()['title_list']))