罗俊辉 9 mēneši atpakaļ
vecāks
revīzija
2ad8d57dd7
100 mainītis faili ar 156 papildinājumiem un 2 dzēšanām
  1. 13 0
      develop/history_info.py
  2. 41 0
      develop/spider.py
  3. 5 2
      schedule_app.py
  4. 1 0
      static/22059569.json
  5. 1 0
      static/22059575.json
  6. 1 0
      static/22059736.json
  7. 1 0
      static/22059738.json
  8. 1 0
      static/22059743.json
  9. 1 0
      static/22059746.json
  10. 1 0
      static/22059838.json
  11. 1 0
      static/22059953.json
  12. 1 0
      static/22059966.json
  13. 1 0
      static/22060077.json
  14. 1 0
      static/22060106.json
  15. 1 0
      static/22060455.json
  16. 1 0
      static/22060461.json
  17. 1 0
      static/22060463.json
  18. 1 0
      static/22061667.json
  19. 1 0
      static/22061680.json
  20. 1 0
      static/22061691.json
  21. 1 0
      static/22061975.json
  22. 1 0
      static/22062281.json
  23. 1 0
      static/22062283.json
  24. 1 0
      static/22062293.json
  25. 1 0
      static/22062306.json
  26. 1 0
      static/22062783.json
  27. 1 0
      static/22062789.json
  28. 1 0
      static/22062797.json
  29. 1 0
      static/22062918.json
  30. 1 0
      static/22062962.json
  31. 1 0
      static/22062963.json
  32. 1 0
      static/22063057.json
  33. 1 0
      static/22063072.json
  34. 1 0
      static/22063317.json
  35. 1 0
      static/22063325.json
  36. 1 0
      static/22063603.json
  37. 1 0
      static/22063606.json
  38. 1 0
      static/22063807.json
  39. 1 0
      static/22063808.json
  40. 1 0
      static/22063809.json
  41. 1 0
      static/22063811.json
  42. 1 0
      static/22063931.json
  43. 1 0
      static/22063935.json
  44. 1 0
      static/22063948.json
  45. 1 0
      static/22064048.json
  46. 1 0
      static/22064052.json
  47. 1 0
      static/22064143.json
  48. 1 0
      static/22064150.json
  49. 1 0
      static/22064222.json
  50. 1 0
      static/22064235.json
  51. 1 0
      static/22064287.json
  52. 1 0
      static/22064293.json
  53. 1 0
      static/22064305.json
  54. 1 0
      static/22064482.json
  55. 1 0
      static/22064484.json
  56. 1 0
      static/22064489.json
  57. 1 0
      static/22064727.json
  58. 1 0
      static/22065015.json
  59. 1 0
      static/22065023.json
  60. 1 0
      static/22065024.json
  61. 1 0
      static/22065027.json
  62. 1 0
      static/22065135.json
  63. 1 0
      static/22065145.json
  64. 1 0
      static/22065151.json
  65. 1 0
      static/22065325.json
  66. 1 0
      static/22065328.json
  67. 1 0
      static/22065331.json
  68. 1 0
      static/22065332.json
  69. 1 0
      static/22065569.json
  70. 1 0
      static/22065570.json
  71. 1 0
      static/22065572.json
  72. 1 0
      static/22065576.json
  73. 1 0
      static/22065682.json
  74. 1 0
      static/22065687.json
  75. 1 0
      static/22065691.json
  76. 1 0
      static/22065781.json
  77. 1 0
      static/22065782.json
  78. 1 0
      static/22065783.json
  79. 1 0
      static/22065787.json
  80. 1 0
      static/22065788.json
  81. 1 0
      static/22065791.json
  82. 1 0
      static/22065876.json
  83. 1 0
      static/22065878.json
  84. 1 0
      static/22065897.json
  85. 1 0
      static/22066178.json
  86. 1 0
      static/22066263.json
  87. 1 0
      static/22066386.json
  88. 1 0
      static/22066392.json
  89. 1 0
      static/22066491.json
  90. 1 0
      static/22066496.json
  91. 1 0
      static/22066519.json
  92. 1 0
      static/22066594.json
  93. 1 0
      static/22066596.json
  94. 1 0
      static/22066599.json
  95. 1 0
      static/22066920.json
  96. 1 0
      static/22067021.json
  97. 1 0
      static/22067027.json
  98. 1 0
      static/22067043.json
  99. 1 0
      static/22067124.json
  100. 1 0
      static/22067128.json

+ 13 - 0
develop/history_info.py

@@ -0,0 +1,13 @@
+"""
+@author: luojunhui
+"""
+from applications.odps_server import PyODPS
+
+odps_function = PyODPS()
+
+sql = "select * from loghubods.lastday_return where dt = '20230306' limit 100;"
+
+data = odps_function.select(sql)
+
+for line in data:
+    print(line)

+ 41 - 0
develop/spider.py

@@ -0,0 +1,41 @@
+"""
+@author: luojunhui
+"""
+import requests
+import json
+
+url = "https://gp-api.iguopin.com/api/jobs/v1/recom-job"
+
+payload = json.dumps({
+  "search": {
+    "page": 1,
+    "page_size": 20
+  },
+  "recom": {
+    "update_time": True,
+    "company_nature": True,
+    "hot_job": True
+  }
+})
+headers = {
+  'accept': 'application/json, text/plain, */*',
+  'accept-language': 'zh,zh-CN;q=0.9',
+  'content-type': 'application/json',
+  'device': 'pc',
+  'origin': 'https://www.iguopin.com',
+  'priority': 'u=1, i',
+  'referer': 'https://www.iguopin.com/',
+  'sec-ch-ua': '"Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"',
+  'sec-ch-ua-mobile': '?0',
+  'sec-ch-ua-platform': '"macOS"',
+  'sec-fetch-dest': 'empty',
+  'sec-fetch-mode': 'cors',
+  'sec-fetch-site': 'same-site',
+  'subsite': 'iguopin',
+  'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'
+}
+
+response = requests.request("POST", url, headers=headers, data=payload)
+for item in response.json()['data']['list']:
+    if item['recruitment_type_cn'] == '社招':
+        print(json.dumps(item, ensure_ascii=False, indent=4))

+ 5 - 2
schedule_app.py

@@ -36,9 +36,12 @@ def get_off_videos_task():
 if __name__ == '__main__':
     # migrate_videos_task()
     # get_off_videos_task()
-    schedule.every().day.at("06:00").do(migrate_videos_task)
+    schedule.every().day.at("01:00").do(source_id_job)
+
+    schedule.every().day.at("05:00").do(migrate_videos_task)
+
+    schedule.every().day.at("06:00").do(get_off_videos_task)
 
-    schedule.every().day.at("05:00").do(get_off_videos_task)
     while True:
         schedule.run_pending()
         print("定时任务正在执行")

+ 1 - 0
static/22059569.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22059575.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22059736.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22059738.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22059743.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22059746.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22059838.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22059953.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22059966.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22060077.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22060106.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22060455.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22060461.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22060463.json

@@ -0,0 +1 @@
+{"time": 1720581550}

+ 1 - 0
static/22061667.json

@@ -0,0 +1 @@
+{"time": 1720581551}

+ 1 - 0
static/22061680.json

@@ -0,0 +1 @@
+{"time": 1720581551}

+ 1 - 0
static/22061691.json

@@ -0,0 +1 @@
+{"time": 1720581555}

+ 1 - 0
static/22061975.json

@@ -0,0 +1 @@
+{"time": 1720581551}

+ 1 - 0
static/22062281.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22062283.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22062293.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22062306.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22062783.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22062789.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22062797.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22062918.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22062962.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22062963.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22063057.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22063072.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22063317.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22063325.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22063603.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22063606.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22063807.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22063808.json

@@ -0,0 +1 @@
+{"time": 1720581552}

+ 1 - 0
static/22063809.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22063811.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22063931.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22063935.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22063948.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064048.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064052.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064143.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064150.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064222.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064235.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064287.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064293.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064305.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064482.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064484.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064489.json

@@ -0,0 +1 @@
+{"time": 1720581553}

+ 1 - 0
static/22064727.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065015.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065023.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065024.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065027.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065135.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065145.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065151.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065325.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065328.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065331.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065332.json

@@ -0,0 +1 @@
+{"time": 1720581554}

+ 1 - 0
static/22065569.json

@@ -0,0 +1 @@
+{"time": 1720581555}

+ 1 - 0
static/22065570.json

@@ -0,0 +1 @@
+{"time": 1720581555}

+ 1 - 0
static/22065572.json

@@ -0,0 +1 @@
+{"time": 1720581555}

+ 1 - 0
static/22065576.json

@@ -0,0 +1 @@
+{"time": 1720581555}

+ 1 - 0
static/22065682.json

@@ -0,0 +1 @@
+{"time": 1720581555}

+ 1 - 0
static/22065687.json

@@ -0,0 +1 @@
+{"time": 1720581555}

+ 1 - 0
static/22065691.json

@@ -0,0 +1 @@
+{"time": 1720581555}

+ 1 - 0
static/22065781.json

@@ -0,0 +1 @@
+{"time": 1720581555}

+ 1 - 0
static/22065782.json

@@ -0,0 +1 @@
+{"time": 1720581555}

+ 1 - 0
static/22065783.json

@@ -0,0 +1 @@
+{"time": 1720581556}

+ 1 - 0
static/22065787.json

@@ -0,0 +1 @@
+{"time": 1720581556}

+ 1 - 0
static/22065788.json

@@ -0,0 +1 @@
+{"time": 1720581556}

+ 1 - 0
static/22065791.json

@@ -0,0 +1 @@
+{"time": 1720581556}

+ 1 - 0
static/22065876.json

@@ -0,0 +1 @@
+{"time": 1720581556}

+ 1 - 0
static/22065878.json

@@ -0,0 +1 @@
+{"time": 1720581556}

+ 1 - 0
static/22065897.json

@@ -0,0 +1 @@
+{"time": 1720581556}

+ 1 - 0
static/22066178.json

@@ -0,0 +1 @@
+{"time": 1720581557}

+ 1 - 0
static/22066263.json

@@ -0,0 +1 @@
+{"time": 1720581557}

+ 1 - 0
static/22066386.json

@@ -0,0 +1 @@
+{"time": 1720581557}

+ 1 - 0
static/22066392.json

@@ -0,0 +1 @@
+{"time": 1720581557}

+ 1 - 0
static/22066491.json

@@ -0,0 +1 @@
+{"time": 1720581557}

+ 1 - 0
static/22066496.json

@@ -0,0 +1 @@
+{"time": 1720581557}

+ 1 - 0
static/22066519.json

@@ -0,0 +1 @@
+{"time": 1720581557}

+ 1 - 0
static/22066594.json

@@ -0,0 +1 @@
+{"time": 1720581557}

+ 1 - 0
static/22066596.json

@@ -0,0 +1 @@
+{"time": 1720581557}

+ 1 - 0
static/22066599.json

@@ -0,0 +1 @@
+{"time": 1720581557}

+ 1 - 0
static/22066920.json

@@ -0,0 +1 @@
+{"time": 1720581558}

+ 1 - 0
static/22067021.json

@@ -0,0 +1 @@
+{"time": 1720581558}

+ 1 - 0
static/22067027.json

@@ -0,0 +1 @@
+{"time": 1720581558}

+ 1 - 0
static/22067043.json

@@ -0,0 +1 @@
+{"time": 1720581558}

+ 1 - 0
static/22067124.json

@@ -0,0 +1 @@
+{"time": 1720581558}

+ 1 - 0
static/22067128.json

@@ -0,0 +1 @@
+{"time": 1720581558}

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels