test.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/python
  2. # -*- coding=utf-8 -*-
  3. # @Create Time: 2024-01-18 10:51:09
  4. # @Last Modified time: 2024-01-18 15:56:47
  5. # import pandas as pd
  6. # from record_parser import UrlParser
  7. # df = pd.DataFrame([{ "record_Time": "2024-01-17T05:14:53.632Z", "current_Url": "http://10.10.21.28/gmp/static/gmpweb/workbench/menu/AppNavExpand.html?appCode=eqpitassets&tSession=1703234778559", "full_Url": "http://domain/path", "user_Id": "zhangchijun@mz.gd.csg.cn", "device_Id": "string", "request_Method": "GET", "event_Type": "click", "form_Data": "{}", "value_Data": "string", "status_Code": "", "target_Url": "http:\/\/10.10.21.28\/api\/jadp\/workbench\/todos\/todoCountByUserId?_=1703234767322", "button_Text": "申领管理"}])
  8. # parser = UrlParser()
  9. # result = parser.process(df)
  10. # print(result)
  11. # import time
  12. # import json
  13. # from multiprocessing.connection import Client
  14. # client = Client(('127.0.0.1', 35010))
  15. # # while True:
  16. # if True:
  17. # data = {'user': '001', 'time': 1, 'domain': '001'}
  18. # client.send(data)
  19. # response = client.recv() # 等待接受数据
  20. # time.sleep(1)
  21. # client.send(data)
  22. # response = client.recv() # 等待接受数据
  23. # client.send(data)
  24. # time.sleep(1)
  25. # response = client.recv() # 等待接受数据
  26. # client.close()
  27. # print(response)
  28. # time.sleep(1)