Demo.py 879 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # -*- coding: utf-8 -*-
  2. # @Time : 2022/11/30 10:17
  3. # @Author : XuJiakai
  4. # @File : Demo
  5. # @Software: PyCharm
  6. input_args = {
  7. "company_id": "",
  8. "company_name": "",
  9. "company_registered_date": "",
  10. "company_org_type": "",
  11. "province_code": "",
  12. "city_code": "",
  13. "county_code": "",
  14. "org_number": "",
  15. "reg_number": "",
  16. "credit_code": "",
  17. }
  18. output_args = {
  19. "_id": "", # concat_ws('_',spider_date,company_id,competitor_product_name)
  20. "base_info": input_args,
  21. "competitor_product_name": "qcc",
  22. "summary": {
  23. "股东信息": 1
  24. },
  25. "latest_date": {
  26. "基本信息": "2022-10-10 00:00:00", # 公司基本信息、股东、主要成员,取核准日期
  27. "历史变更": "2022-10-20 00:00:00"
  28. },
  29. "other_info": {
  30. },
  31. "spider_date": "2022-10-20 00:00:00"
  32. }
  33. if __name__ == '__main__':
  34. pass