主要内容: - 包含12个产业的完整教务系统前端代码 - 智能启动脚本 (start-industry.sh) - 可视化产业导航页面 (index.html) - 项目文档 (README.md) 优化内容: - 删除所有node_modules和.yoyo文件夹,从7.5GB减少到2.7GB - 添加.gitignore文件避免上传不必要的文件 - 自动依赖管理和智能启动系统 产业列表: 1. 文旅产业 (5150) 2. 智能制造 (5151) 3. 智能开发 (5152) 4. 财经商贸 (5153) 5. 视觉设计 (5154) 6. 交通物流 (5155) 7. 大健康 (5156) 8. 土木水利 (5157) 9. 食品产业 (5158) 10. 化工产业 (5159) 11. 能源产业 (5160) 12. 环保产业 (5161) 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
62 lines
2.3 KiB
Python
62 lines
2.3 KiB
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import json
|
|
import os
|
|
|
|
def extract_position_data(position_names):
|
|
"""从JSON文件中提取指定岗位的数据"""
|
|
result = {}
|
|
|
|
# 读取所有part文件
|
|
for i in range(1, 4):
|
|
file_path = f'/Users/apple/Documents/cursor/教务系统/frontend/网页未导入数据/文旅产业/个人简历内容_part{i}.json'
|
|
try:
|
|
with open(file_path, 'r', encoding='utf-8') as f:
|
|
data = json.load(f)
|
|
for item in data:
|
|
position = item.get('❌岗位名称查询', '')
|
|
if position in position_names:
|
|
result[position] = item
|
|
print(f"找到: {position} in part{i}")
|
|
except Exception as e:
|
|
print(f"Error reading part{i}: {e}")
|
|
|
|
# 也读取主文件
|
|
main_file = '/Users/apple/Documents/cursor/教务系统/frontend/网页未导入数据/文旅产业/个人简历内容.json'
|
|
try:
|
|
with open(main_file, 'r', encoding='utf-8') as f:
|
|
data = json.load(f)
|
|
for item in data:
|
|
position = item.get('❌岗位名称查询', '')
|
|
if position in position_names and position not in result:
|
|
result[position] = item
|
|
print(f"找到: {position} in main file")
|
|
except Exception as e:
|
|
print(f"Error reading main file: {e}")
|
|
|
|
return result
|
|
|
|
# 需要提取的岗位
|
|
positions_to_extract = [
|
|
'露营地运营专员',
|
|
'文创产品设计师', '文创产品策划师', '文创产品设计师助理',
|
|
'品牌策划运营专员', '品牌公关', '品牌推广专员',
|
|
'ip运营', 'IP运营总监助理', '品牌公关管培生'
|
|
]
|
|
|
|
# 提取数据
|
|
extracted_data = extract_position_data(positions_to_extract)
|
|
|
|
# 保存提取的数据
|
|
output_file = '/Users/apple/Documents/cursor/教务系统/frontend/extracted_resume_data.json'
|
|
with open(output_file, 'w', encoding='utf-8') as f:
|
|
json.dump(extracted_data, f, ensure_ascii=False, indent=2)
|
|
|
|
print(f"\n成功提取 {len(extracted_data)} 个岗位的数据")
|
|
print(f"已保存到: {output_file}")
|
|
|
|
# 显示缺失的岗位
|
|
missing = set(positions_to_extract) - set(extracted_data.keys())
|
|
if missing:
|
|
print(f"\n未找到的岗位: {missing}") |