article_list.py 434 B

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