分离复试分数线载体并新增页面表格来源

official_score_lines 收两种载体:湖北师范与国科大的PDF线表56键,
广东外语外贸大学页面内表格97键(标题自称「我校」,校名只能从文件名取)。
两档单科线要先判「满分>100」再判「=100」,否则lover被l100抢走。

四川社科院那份流式排版放弃:专业名与考生姓名混在同一阅读流里,
强行归属会造出假记录,原件保留不删。
This commit is contained in:
Your Name committed 2026-11-01 01:12:28 +08:00
1 parent d307602502
commit cc01f36854
8 files changed
+2442 -15

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -0,0 +1,730 @@
[
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "应用经济学",
"total_line": "323",
"line_100": "40",
"line_over": "60",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "035102",
"major_name": "法律法学",
"total_line": "323",
"line_100": "40",
"line_over": "60",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "125200",
"major_name": "公共管理",
"total_line": "164",
"line_100": "38",
"line_over": "76",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045102",
"major_name": "学科教学(思政)",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "030501",
"major_name": "马克思主义基本原理",
"total_line": "336",
"line_100": "40",
"line_over": "60",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "030502",
"major_name": "马克思主义发展史",
"total_line": "323",
"line_100": "40",
"line_over": "60",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "030503",
"major_name": "马克思主义中国化研究",
"total_line": "336",
"line_100": "40",
"line_over": "60",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "030505",
"major_name": "思想政治教育",
"total_line": "323",
"line_100": "40",
"line_over": "60",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "教育学",
"total_line": "341",
"line_100": "45",
"line_over": "135",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "教育",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045112",
"major_name": "学科教学体育",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "体育",
"total_line": "340",
"line_100": "36",
"line_over": "108",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045103",
"major_name": "学科教育(语文)",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "中国语言文学",
"total_line": "351",
"line_100": "47",
"line_over": "71",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045300",
"major_name": "国际中文教育",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "055200",
"major_name": "新闻与传播",
"total_line": "351",
"line_100": "47",
"line_over": "71",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "040102",
"major_name": "课程与教学论",
"total_line": "341",
"line_100": "45",
"line_over": "135",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045108",
"major_name": "学科教学(英语)",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "外国语言文学",
"total_line": "351",
"line_100": "47",
"line_over": "71",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045109",
"major_name": "学科教学(历史)",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "中国史",
"total_line": "341",
"line_100": "43",
"line_over": "129",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "社会工作",
"total_line": "346",
"line_100": "40",
"line_over": "60",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045104",
"major_name": "学科教学(数学)",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "数学",
"total_line": "274",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045105",
"major_name": "学科教学(物理)",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "080300",
"major_name": "光学工程",
"total_line": "260",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "电子信息",
"total_line": "260",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045106",
"major_name": "学科教学(化学)",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "化学",
"total_line": "274",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "086002",
"major_name": "制药工程",
"total_line": "260",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045110",
"major_name": "学科教学(地理)",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "地理学",
"total_line": "274",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045107",
"major_name": "学科教学(生物)",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "生物学",
"total_line": "274",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "生物与医药",
"total_line": "260",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "070105",
"major_name": "运筹学与控制论",
"total_line": "274",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "控制科学与工程",
"total_line": "260",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "085406",
"major_name": "控制工程",
"total_line": "260",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "040110",
"major_name": "教育技术学",
"total_line": "341",
"line_100": "45",
"line_over": "135",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045114",
"major_name": "现代教育技术",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "085402",
"major_name": "通讯工程(含宽带网络、移动通信等)",
"total_line": "260",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "085404",
"major_name": "计算机技术",
"total_line": "312",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "085410",
"major_name": "人工智能",
"total_line": "292",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045111",
"major_name": "学科教学(音",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "乐)",
"total_line": "",
"line_100": "",
"line_over": "",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "135200",
"major_name": "音乐",
"total_line": "351",
"line_100": "37",
"line_over": "56",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "045113",
"major_name": "学科教学(美术)",
"total_line": "341",
"line_100": "45",
"line_over": "68",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "135600",
"major_name": "美术与书法(中国画、油画、水彩)",
"total_line": "365",
"line_100": "37",
"line_over": "56",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "135600",
"major_name": "美术与书法(书法)",
"total_line": "351",
"line_100": "37",
"line_over": "56",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "135700",
"major_name": "设计",
"total_line": "351",
"line_100": "37",
"line_over": "56",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "材料科学与工程",
"total_line": "260",
"line_100": "34",
"line_over": "51",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "初试总成绩折算成绩要求",
"total_line": "",
"line_100": "",
"line_over": "",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "67",
"total_line": "100",
"line_100": "",
"line_over": "",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "94",
"total_line": "",
"line_100": "",
"line_over": "",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "湖北师范大学",
"year": "2025",
"major_code": "",
"major_name": "83",
"total_line": "",
"line_100": "",
"line_over": "",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250314/1ea48991722be8e63323a37afeff86a52f138034-3393-4dd6-b5ef-13c0897bd391.pdf",
"local_file": "hbnu_2025_fushi.pdf",
"sha256": "11ddcda63c96800851d7f991e5991918a616dd4960d8276282d7cdfc754c568c",
"note": "院校公示的逐学科进入复试分数要求"
},
{
"school": "中国科学院大学",
"year": "2025",
"major_code": "",
"major_name": "信息资源管理",
"total_line": "333",
"line_100": "41",
"line_over": "100",
"source_url": "https://ggyx-img.oss-cn-zhangjiakou.aliyuncs.com/ggyx_uploads/20250311/15276ee4ebbaf9f2dbe69ca878b81615%E4%B8%AD%E5%9B%BD%E7%A7%91%E5%AD%A6%E9%99%A2%E5%A4%A7%E5%AD%A6%E6%96%87%E7%8C%AE%E6%83%85%E6%8A%A5%E4%B8%AD%E5%BF%83.pdf",
"local_file": "ucas_2025_wxqb.pdf",
"sha256": "db0cee403312caee3fb2e58fdb4c48695d6ab63c8f5992c01507f22c81991389",
"note": "院校公示的逐学科进入复试分数要求"
}
]
@@ -0,0 +1,20 @@
file tr 6位码 有姓名 PDF直链
广东外语外贸大学_2026_page.html 109 1 False 0
juwp_2026_detail.html 78 19 True 0
中央音乐学院_2026_page.html 2 245 False 0
bsu_2025_detail.html 0 1 True 1
bsu_2026_detail.html 0 1 True 1
caams_2026_detail.html 0 54 False 0
nim_2026_detail.html 0 22 False 0
whut_2026_detail.html 0 1 True 1
xinghai_2026_detail.html 0 94 False 0
上海体育大学_2026_p2.html 0 7 False 0
中国计量科学研究院_2026_p2.html 0 22 False 0
中央戏剧学院_2025_page.html 0 9 False 1
北京体育大学_2026_page.html 0 10 False 0
南方科技大学_2025_p2.html 0 10 True 0
昆明理工大学_2026_page.html 0 8 True 0
武汉理工大学_2026_page.html 0 1 True 1
江汉大学_2025_page.html 0 40 False 0
---
总文件 47 | 含表格(>10行) 2 | 含PDF直链 5 | 含姓名 8
@@ -0,0 +1,21 @@
{
"generated_at": "2026-11-01",
"table": "official_score_lines",
"pdf_carrier": 56,
"html_carrier": 97,
"schools_pdf": [
"中国科学院大学",
"湖北师范大学"
],
"schools_html": [
"广东外语外贸大学"
],
"carrier_separation": "湖北师范那份PDF前三页是线表、第四页起是名单,两类必须分开:混算会把589行线当成589人",
"rejected": "sass_2025_fushi.pdf 流式排版,专业名与考生姓名混在同一阅读流中无法可靠归属,放弃解析并保留原件",
"files": {
"cand_html_score_lines.json": "0e2d1f3c2e0ec899",
"cand_orr_lines.json": "54857b4251e4e62a",
"diag_orr_html.txt": "5e3178b4d319bc16",
"orr_diag_after.txt": "98fc791631f26ef7"
}
}
@@ -0,0 +1,29 @@
bnu_2025_edu.json 北京师范大学 复试名单 行=327 人数键=26 分数线键=0 门槛行=0
bnu_2025_nsem.json 北京师范大学 复试名单 行=15 人数键=1 分数线键=0 门槛行=0
bnu_2025_sfll.json 北京师范大学 复试名单 行=131 人数键=5 分数线键=0 门槛行=0
bnu_2025_stat.json 北京师范大学 复试名单 行=286 人数键=2 分数线键=0 门槛行=0
bnu_2025_wl.json 北京师范大学 复试名单 行=16 人数键=9 分数线键=0 门槛行=0
bsu_2025_nilq.json 北京体育大学 拟录取名单 行=594 人数键=25 分数线键=0 门槛行=0
bsu_2026_nilq.json 北京体育大学 拟录取名单 行=611 人数键=26 分数线键=0 门槛行=0
btbu_2025_jj_fushi.json 北京工商大学 复试名单 行=286 人数键=8 分数线键=0 门槛行=0
ccp_2025_mpa.json 中共北京市委党校 复试名单 行=27 人数键=1 分数线键=0 门槛行=0
ccp_2025_xsx.json 中共北京市委党校 复试名单 行=7 人数键=4 分数线键=0 门槛行=0
gdufs_2026_fushi.json 广东外语外贸大学 拟复试名单 行=0 人数键=0 分数线键=0 门槛行=0
gxust_2025_fushi.json 广西科技大学 复试名单 行=419 人数键=30 分数线键=0 门槛行=0
hbnu_2025_fushi.json 湖北师范大学 复试名单 行=594 人数键=65 分数线键=55 门槛行=0
hrb_2026_fushi.json 哈尔滨学院 复试名单 行=11 人数键=2 分数线键=0 门槛行=0
jhun_2025_fushi.json 江汉大学 复试名单 行=10 人数键=3 分数线键=0 门槛行=0
jlu_2025_jjxy.json 吉林大学 复试名单 行=96 人数键=9 分数线键=0 门槛行=0
kmust_2026_fushi.json 昆明理工大学 复试名单 行=0 人数键=0 分数线键=0 门槛行=0
njti_2025_fushi.json 南京体育学院 复试名单 行=225 人数键=8 分数线键=0 门槛行=0
nudt_2025_met.json 国防科技大学 复试名单 行=31 人数键=2 分数线键=0 门槛行=0
nvir_2026_fushi.json 中国兵器科学研究院(昆明物理研究所) 复试名单 行=14 人数键=1 分数线键=0 门槛行=0
pumc_2025_fushi.json 北京协和医学院 复试名单 行=0 人数键=0 分数线键=0 门槛行=0
sass_2025_fushi.json 四川省社会科学院 复试名单 行=0 人数键=0 分数线键=0 门槛行=0
shcc_2025_fushi.json 上海海关学院 复试名单 行=82 人数键=5 分数线键=0 门槛行=0
shcc_2026_fushi.json 上海海关学院 复试名单 行=97 人数键=4 分数线键=0 门槛行=0
tjcm_2025_fushi.json 天津音乐学院 复试名单 行=206 人数键=1 分数线键=0 门槛行=0
tjcm_2026_fushi.json 天津音乐学院 复试名单 行=301 人数键=1 分数线键=0 门槛行=0
ucas_2025_wxqb.json 中国科学院大学 复试名单 行=6 人数键=1 分数线键=1 门槛行=0
whut_2026_nilq.json 武汉理工大学 拟录取名单 行=0 人数键=0 分数线键=0 门槛行=0
zhongxi_2025_fushi.json 中央戏剧学院 复试成绩要求 行=0 人数键=0 分数线键=0 门槛行=0
+83
View File
@@ -0,0 +1,83 @@
# -*- coding: utf-8 -*-
"""逐学科复试分数线入库 official_score_lines。
分数线与名单人数是两种载体,混在一起会把「每行一个学科的线」数成人数
(今晚湖北师范那份合订 PDF 就这么造出过 115 条 person_count=1 的假记录)。
入库前核:总分线是 2~3 位数、单科线非空时也在合理区间、键唯一。
"""
import json
import re
import sqlite3
import sys
import time
ZX = r'D:/择校/数据库/zexiao_2027.db'
TABLE = 'official_score_lines'
KEYS = ('school', 'year', 'major_code', 'major_name', 'local_file')
def validate(rows):
bad, seen, out = {}, set(), []
for r in rows:
tl = (r.get('total_line') or '').strip()
if not tl and not (r.get('line_100') or r.get('line_over')):
bad['no_line'] = bad.get('no_line', 0) + 1
continue
if tl and not (100 <= int(tl) <= 600):
bad['total_out_of_range'] = bad.get('total_out_of_range', 0) + 1
r = dict(r, data_flag='total_out_of_range')
for c in ('line_100', 'line_over'):
v = (r.get(c) or '').strip()
if v and not (0 < int(v) <= 300):
bad['single_out_of_range'] = bad.get('single_out_of_range', 0) + 1
key = tuple((r.get(c) or '') for c in KEYS)
if key in seen:
bad['dup_key'] = bad.get('dup_key', 0) + 1
continue
seen.add(key)
out.append(r)
return out, bad
def main():
src = sys.argv[1] if len(sys.argv) > 1 else (
r'D:/择校/运行暂存/agent_ingest_20261031/cand_orr_lines.json')
rows = [dict(x, data_flag='') for x in json.load(open(src, encoding='utf-8'))]
good, bad = validate(rows)
print('候选 %d 通过 %d 拒绝 %s' % (len(rows), len(good), bad))
z = sqlite3.connect(ZX, timeout=600)
z.execute('PRAGMA busy_timeout=600000')
z.execute('''CREATE TABLE IF NOT EXISTS %s (
"school" TEXT,"year" TEXT,"major_code" TEXT,"major_name" TEXT,
"total_line" TEXT,"single_100" TEXT,"single_over100" TEXT,
"source_url" TEXT,"local_file" TEXT,"sha256" TEXT,"note" TEXT,"data_flag" TEXT,
"_ingested_at" TEXT, PRIMARY KEY ("school","year","major_code","major_name","local_file"))''' % TABLE)
now = time.strftime('%Y-%m-%dT%H:%M:%S')
n = 0
for r in good:
cur = z.execute(
'INSERT OR REPLACE INTO %s '
'("school","year","major_code","major_name","total_line","single_100",'
'"single_over100","source_url","local_file","sha256","note","data_flag",'
'"college","_ingested_at") '
'VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)' % TABLE,
(r['school'], r['year'], r.get('major_code') or '', r.get('major_name') or '',
r.get('total_line') or '', r.get('line_100') or '', r.get('line_over') or '',
r.get('source_url') or '', r.get('local_file') or '', r.get('sha256') or '',
r.get('note') or '', r.get('data_flag') or '', r.get('college') or '', now))
n += 1
z.execute('INSERT INTO changelog VALUES (?,?,?,?,?,?)',
(time.strftime('%Y-%m-%d %H:%M:%S'), 'orr_score_lines_20261101', TABLE,
'insert', n, '逐学科复试线 %d 行;拒绝=%s' % (n, json.dumps(bad, ensure_ascii=False))))
z.commit()
tot = z.execute('select count(*) from %s' % TABLE).fetchone()[0]
print('%s 写入 %d 表内 %d' % (TABLE, n, tot))
for r in z.execute('select school,year,count(*),sum(total_line<>\'\'),sum(single_100<>\'\') '
'from %s group by 1,2' % TABLE):
print(' ', tuple(r))
print('quick_check=', z.execute('PRAGMA quick_check').fetchone()[0])
z.close()
if __name__ == '__main__':
main()
@@ -0,0 +1,106 @@
# -*- coding: utf-8 -*-
"""从院校官网 detail 页 HTML 直接提取逐专业复试分数线表。
有些线的原件不在 PDF 里而是页面内表格(广东外语外贸大学 2026 有 109 行)。
只取带「复试线/单科」列名的表,其他表格(名单、目录)不在本脚本职责内。
"""
import glob
import html
import json
import os
import re
RAW = r'D:/择校/运行暂存/official_roster_2025_2026/raw'
OUT = r'D:/择校/运行暂存/agent_ingest_20261031/cand_html_score_lines.json'
MANIFEST = r'D:/择校/运行暂存/official_roster_2025_2026/pages_manifest.csv'
def text_of(p):
b = open(p, 'rb').read()
for e in ('utf-8', 'gbk', 'gb18030'):
try:
return b.decode(e)
except Exception:
continue
return b.decode('utf-8', 'ignore')
def cells(tr):
cs = re.findall(r'<t[dh][^>]*>(.*?)</t[dh]>', tr, re.S | re.I)
out = []
for c in cs:
c = html.unescape(re.sub(r'<[^>]+>', ' ', c)).replace('\xa0', ' ')
out.append(re.sub(r'\s+', ' ', c).strip())
return out
def school_from(title, fname):
# 页面标题常自称「我校」,校名只在文件名里,两处都要试
for src in (title or '', fname):
m = re.search(r'([\u4e00-\u9fa5]{2,14}(?:大学|学院|研究院|党校))', src)
if m:
return m.group(1)
return ''
def main():
man = {}
if os.path.exists(MANIFEST):
import csv
for r in csv.DictReader(open(MANIFEST, encoding='utf-8-sig')):
lp = (r.get('local_path') or '').replace('\\', '/')
man[os.path.basename(lp)] = r
rows = []
for p in sorted(glob.glob(RAW + '/*.htm*')):
fn = os.path.basename(p)
t = text_of(p)
title = (re.search(r'<title[^>]*>(.*?)</title>', t, re.S | re.I) or [None, ''])[1]
trs = re.findall(r'<tr[^>]*>(.*?)</tr>', t, re.S | re.I)
if len(trs) < 5:
continue
hdr = cells(trs[0])
j = '|'.join(hdr)
if not (re.search(r'复试线|总分.*线|单科', j) and re.search(r'专业|学科', j)):
continue
mi = {}
for i, c in enumerate(hdr):
cc = c.replace(' ', '')
if '院' in cc and ('学院' in cc or '院系' in cc):
mi.setdefault('college', i)
elif re.search(r'(专业|学科)(名称|全称)?$', cc) or cc in ('专业', '学科'):
mi.setdefault('name', i)
elif re.search(r'总分', cc):
mi.setdefault('total', i)
elif re.search(r'单科.*(>|=|=100|>=100|101|超过)', cc) and '>' in cc:
mi.setdefault('lover', i) # 「满分>100分」必须先判,否则被 =100 那档抢走
elif re.search(r'单科', cc):
mi.setdefault('l100', i)
if 'total' not in mi or 'name' not in mi:
continue
school = school_from(title, fn)
year = (re.search(r'(20\d\d)', title) or [None, ''])[1]
for tr in trs[1:]:
c = cells(tr)
if len(c) < len(hdr):
c = c + [''] * (len(hdr) - len(c))
g = lambda k: (c[mi[k]] if k in mi and mi[k] < len(c) else '')
nm = g('name')
tl = re.sub(r'[^0-9]', '', g('total'))
if not nm or not tl or not (100 <= int(tl) <= 600):
continue
rows.append(dict(school=school, year=year, college=g('college'),
major_code='', major_name=nm, total_line=tl,
line_100=re.sub(r'[^0-9]', '', g('l100')),
line_over=re.sub(r'[^0-9]', '', g('lover')),
source_url=man.get(fn, {}).get('url', ''),
local_file=fn, sha256='',
note='页面内表格,官方逐专业复试线'))
print('%-34s school=%-14s year=%s 取到=%d' % (fn, school, year,
sum(1 for x in rows if x['local_file'] == fn)))
with open(OUT, 'w', encoding='utf-8') as f:
json.dump(rows, f, ensure_ascii=False, indent=1)
print('合计 %d 行 -> %s' % (len(rows), OUT))
if __name__ == '__main__':
main()
@@ -64,10 +64,14 @@ def header_map(cells):
m['person'] = i
elif 'direction' not in m and re.search(r'方向(名称|码)?$', c):
m['direction'] = i
elif 'line100' not in m and re.search(r'单科.*100', c):
m['line100'] = i
elif 'lineover' not in m and re.search(r'单科.*(101|>100|超过)', c):
m['lineover'] = i
else:
s = slot(c)
if s and s not in m:
m[s] = i
sg = slot(c)
if sg and sg not in m:
m[sg] = i
return m
@@ -92,17 +96,28 @@ def load_manifest():
lp = (r.get('local_path') or '').replace('\\', '/')
if not lp:
continue
idx[os.path.basename(lp)] = r
b = os.path.basename(lp)
idx[b] = r
idx.setdefault(os.path.splitext(b)[0], r) # manifest 有行不写扩展名
return idx
SCHOOL_RE = re.compile(r'([一-龥]{2,14}(?:大学|学院|研究院|党校|社会科学院))')
def carrier_of(hm):
"""名单载体与分数线表要分开:后者每行是一个学科的线,不是一个人。"""
if hm.get('person') is not None or hm.get('id') is not None:
return 'roster'
if (hm.get('name') is not None or hm.get('code') is not None) and hm.get('total') is not None:
return 'score_line'
return 'unknown'
def parse(path, midx):
d = json.load(open(path, encoding='utf-8'))
fname = d['file']
man = midx.get(fname, {})
man = midx.get(fname) or midx.get(os.path.splitext(fname)[0]) or {}
school, year, kind = man.get('school', ''), man.get('year', ''), man.get('kind', '复试名单')
if not year:
my = re.search(r'(20\d{2})', fname)
@@ -117,8 +132,9 @@ def parse(path, midx):
if not school:
m = SCHOOL_RE.search(man.get('url', ''))
school = m.group(1) if m else ''
rows, hm = [], None
rows, hm, at_row = [], None, None
n_thr = 0
carrier = 'unknown'
for grid in d['pages']:
for raw in grid:
cells = [clean(c) for c in raw]
@@ -127,20 +143,31 @@ def parse(path, midx):
if is_header(cells):
cand = header_map(cells)
if cand:
hm = cand
# 跨两行的表头(如国防科大「初试各科成绩」横跨五列):
# 列数相同就合并语义列,否则整体替换,避免第二行把姓名/专业列冲掉
if hm and len(cells) == len(at_row or cells):
hm = {**hm, **cand}
else:
hm = cand
at_row = cells
carrier = carrier_of(hm)
continue
if hm is None:
continue
joined = '|'.join(cells)
if any(w in joined for w in ('汇总', '合计', '小计')):
continue
if THRESHOLD.search(cells[1] if len(cells) > 1 else '') or \
any(THRESHOLD.search(c) for c in cells[:3]):
if carrier != 'score_line' and (
THRESHOLD.search(cells[1] if len(cells) > 1 else '')
or any(THRESHOLD.search(c) for c in cells[:3])):
n_thr += 1
continue
continue # 「≥41」在线表载体里正是要取的值,只有名单载体才当噪声丢
idv = at(hm, cells, 'id')
person = at(hm, cells, 'person')
if not (STU_ID.search(joined) or idv or (person and len(person) <= 8)):
if carrier != 'score_line' and not (
STU_ID.search(joined) or idv
or (person and 1 <= len(person) <= 8)
or (at(hm, cells, 'total') and re.match(r'^\d{2,3}(\.\d)?$', at(hm, cells, 'total')))):
continue
code = ''
cv = at(hm, cells, 'code')
@@ -153,10 +180,29 @@ def parse(path, midx):
if m:
code = m.group(1)
name = name.split(code, 1)[-1] or name
else:
my = re.search(r'^[((](\d{4})[))]', name)
if my:
name = name[my.end():] or name # 4位学科码不填进6位专业码列
if not name and cv:
name = CODE_RE.sub('', cv)
name = re.sub(r'^[))、,,::\s]+', '', name or '')
name = re.sub(r'^[((]\d{4}[))]', '', name).strip()
scores = {k: num(at(hm, cells, k)) for k in
('politics', 'foreign', 'biz1', 'biz2', 'total')}
if carrier == 'score_line':
# 分数线表每行是一个学科的线,不是一个人;按人数分组会造出成批 person_count=1 的假记录
rows.append(dict(school=school, year=year, list_kind='复试线',
major_code=code, major_name=name, direction='', college='',
scores={}, line_total=at(hm, cells, 'total'),
line_100=at(hm, cells, 'line100'),
line_over=at(hm, cells, 'lineover'),
p_politics=at(hm, cells, 'politics'),
p_foreign=at(hm, cells, 'foreign'),
p_biz1=at(hm, cells, 'biz1'), carrier='score_line',
source_url=man.get('url', ''), sha256=man.get('sha256', ''),
local_file=fname))
continue
rows.append(dict(school=school, year=year,
list_kind=kind, major_code=code, major_name=name,
direction=at(hm, cells, 'direction'), college='',
@@ -175,6 +221,8 @@ def at(hm, cells, k):
def aggregate(rows):
g = {}
for r in rows:
if r.get('carrier') == 'score_line':
continue
k = (r['school'], r['year'], r['list_kind'], r['major_code'], r['major_name'])
g.setdefault(k, []).append(r)
out = []
@@ -200,9 +248,35 @@ def aggregate(rows):
return out
def lines_of(rows):
out = {}
for r in rows:
if r.get('carrier') != 'score_line':
continue
k = (r['school'], r['year'], r['major_code'], r['major_name'])
if k in out:
continue
def dig(v):
m = re.search(r'\d{2,3}', v or '')
return m.group(0) if m else ''
l100 = dig(r['line_100'])
lover = dig(r['line_over'])
if not l100: # 有的校线表按科目分列(政治/英语=满分100,专业课=满分>100)
l100 = dig(at(r.get('_hm', {}), r.get('_cells', []), 'politics')) if False else dig(r.get('p_politics') or r.get('p_foreign') or '')
if not lover:
lover = dig(r.get('p_biz1') or '')
out[k] = dict(zip(('school', 'year', 'major_code', 'major_name'), k),
total_line=dig(r['line_total']),
line_100=l100,
line_over=lover,
source_url=r['source_url'], local_file=r['local_file'],
sha256=r['sha256'], note='院校公示的逐学科进入复试分数要求')
return list(out.values())
def main():
midx = load_manifest()
all_rows, alldiag = [], []
all_rows, all_lines, alldiag = [], [], []
for p in sorted(glob.glob(os.path.join(CACHE, 'orr_*.json'))):
try:
rows, n_thr, meta = parse(p, midx)
@@ -211,15 +285,19 @@ def main():
continue
rows = [r for r in rows if r['school']]
agg = aggregate(rows)
ln = lines_of(rows)
all_rows += agg
alldiag.append('%-24s %-14s %-9s 行=%-5d 专业键=%-4d 门槛行=%d' % (
os.path.basename(p)[4:], meta[0], meta[2], len(rows), len(agg), n_thr))
all_lines += ln
alldiag.append('%-24s %-14s %-9s 行=%-5d 人数键=%-4d 分数线键=%-4d 门槛行=%d' % (
os.path.basename(p)[4:], meta[0], meta[2], len(rows), len(agg), len(ln), n_thr))
with open(OUT, 'w', encoding='utf-8') as f:
json.dump(all_rows, f, ensure_ascii=False, indent=1)
with open(OUT.replace('cand_orr', 'cand_orr_lines'), 'w', encoding='utf-8') as f:
json.dump(all_lines, f, ensure_ascii=False, indent=1)
with open(DIAG, 'w', encoding='utf-8') as f:
f.write('\n'.join(alldiag))
print('\n'.join(alldiag))
print('out rows=%d' % len(all_rows))
print('out rows=%d score_lines=%d' % (len(all_rows), len(all_lines)))
if __name__ == '__main__':