Skip to content

feat(route): add 北京大学学生就业指导服务中心#7904

Merged
TonyRL merged 10 commits intoDIYgod:masterfrom
DylanXie123:feat/pku-recruit
Apr 24, 2022
Merged

feat(route): add 北京大学学生就业指导服务中心#7904
TonyRL merged 10 commits intoDIYgod:masterfrom
DylanXie123:feat/pku-recruit

Conversation

@DylanXie123
Copy link
Copy Markdown
Contributor

该 PR 相关 Issue / Involved issue

Close #7767

完整路由地址 / Example for the proposed route(s)

/pku/scc/recruit
/pku/scc/recruit/xwrd
/pku/scc/recruit/tzgg
/pku/scc/recruit/zpxx
/pku/scc/recruit/gfjgxx
/pku/scc/recruit/sxxx
/pku/scc/recruit/cyxx

新RSS检查列表 / New RSS Script Checklist

  • 这个PR中包含了新的路由吗? Does this PR add new route?
    • 如果有, 请完成检查列表. If yes, please finish the check list
    • 如果你的PR符合下方某个事项, 也请注明. If any of the checklist item meets your PR, please fill it out.
    • <- 这样打勾
  • 是否提供了文档? Documentation provided?
    • 是否提供了英文文档? EN Documentation provided?
  • 是否支持全文获取? Is this RSS Script support fulltext?
    • 如果全文获取中需要访问文章链接, 是否使用了缓存? If fulltext requires to fetch detail pages, is cache used in the process?
    • 缓存说明 | How to use cache
  • 目标是否有明显的反爬/频率限制? Is there any sign of anti-bot or rate limit?
    • 如果有, 是否有对应的措施? (延长缓存时间, 写文档说明, etc.) If yes, do your code reflect this sign? (e.g. write documentations, use long cache time)
  • 目标是否有提供日期? Is there a date in the source?
    • 如果有,包是否正确解析? If there is, can this script provide this info?
    • 如果有提供解析能力,时区是否正确调整? Is the timezone correctly provided?
    • 如果有提供日期,但是没有提供解析,请说明原因 If there is a date but this script does not parse, please provide your reason.
  • 是否引入的新的包? Any new package introduced?
    • 如果有, 请说明原因. If yes, please state your reason
  • 是否使用了Puppeteer? Make use of Puppeteer?
    • 如果有, 请说明原因. If yes, please state your reason

说明 / Note

@vercel
Copy link
Copy Markdown

vercel bot commented Jul 20, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/diy/rsshub-do-not-use/2ZNZEZA4SZosZ6QfdFWdkw1DRhMg
✅ Preview: https://rsshub-do-not-use-git-fork-dylanxie123-feat-pku-recruit-diy.vercel.app

@github-actions
Copy link
Copy Markdown
Contributor

Successfully generated as following:

https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit - **Failed**
    HttpError: <!DOCTYPE html><html><head><title>Error in RSSHub!</title><style>body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;color:#2c3e50}.content{width:800px;margin:100px auto 0;text-align:center}.message{white-space:pre-wrap;text-align:left}a{color:#f5712c}</style></head><body><div class="content"><p><img src="https://i.loli.net/2019/09/04/lmBbNQoLzrKGgiM.jpg" alt="RSSHub" width="120"></p><h1>Looks like something went wrong</h1><pre class="message">Route requested: /pku/scc/recruit</pre><pre class="message">Error message: Cannot read property 'match' of null</pre><div style="margin:50px 0"><p>在线文档与支持,请访问<a href="https://docs.rsshub.app/" target="_blank">docs.rsshub.app</a>。</p><p>For online documentation and support please refer to <a href="https://docs.rsshub.app/" target="_blank">docs.rsshub.app</a>.</p></div></div></body></html>
https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/xwrd - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 
新闻热点
]]></title>
        <link>https://scc.pku.edu.cn/</link>
        <atom:link href="https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/xwrd" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 
新闻热点
 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Tue, 20 Jul 2021 11:30:25 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[北京大学欢送2021届赴重点行业领域就业毕业生]]></title>
            <description><![CDATA[<p style="text-indent:2em;color:#292929;font-family:"background-color:#FFFFFF;">
7月8日和9日,北京大学先后举办两场2021届赴重点行业领域就业毕业生欢送会。党委书记邱水平,校长郝平,党委副书记、副校长陈宝剑等出席会议。会议由学生就业指导服务中心主任陈征微主持。
</p>
<p style="text-align:center;color:#292929;font-family:"background-color:#FFFFFF;">
<img src="http://pkunews.pku.edu.cn/images/2021-07/a82f3ccb9c79428fb52a4acf0a050d4d.jpeg" width="463" height="309" style="width:550px;height:auto;" referrerpolicy="no-referrer">
https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/tzgg - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 
通知公告
]]></title>
        <link>https://scc.pku.edu.cn/</link>
        <atom:link href="https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/tzgg" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 
通知公告
 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Tue, 20 Jul 2021 11:30:29 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[学生就业指导服务中心2021年暑假对外办公和值班安排]]></title>
            <description><![CDATA[<p class="MsoNormal" style="text-indent:24.0pt;">
根据学校校历及相关文件安排,为确保毕业生及时办理就业相关手续,学生就业指导服务中心在暑假期间作如下工作安排:<span></span> 
</p>
<p class="MsoNormal" style="text-indent:24.0pt;">
2021年<span>7</span>月<span>19</span>日至<span>8</span>月<span>29</span>日,工作日上午<span>9:00-12:00</span>,下午<span>13:00-17:00</span>安排值班人员,对外办理就业相关手续。工作时间值班电话:<span>62751275</span>,传真:<span>62755642</span>。<span></span> 
https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/zpxx - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 招聘信息]]></title>
        <link>https://scc.pku.edu.cn/</link>
        <atom:link href="https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/zpxx" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 招聘信息 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Tue, 20 Jul 2021 11:30:33 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[招商局集团招收2021年度博士后]]></title>
            <description><![CDATA[<h2 style="font-weight:400;font-size:18px;color:#007CC8;font-family:微软雅黑, 宋体, "text-align:center;">
<span style="font-weight:700;">招商局集团招收2021年度博士后:企业战略、香港经济、一带一路、大湾区</span>
</h2>
<h2 class="dload" align="center" style="font-weight:400;font-size:18px;color:#007CC8;font-family:微软雅黑, 宋体, "">
<span style="font-weight:700;"><span>相关文件下载:</span></span><span class="Apple-converted-space"> </span><a target="_blank" href="https://www.cmhk.com/uploadfiles/201801/20180105173008645.doc"><span>博士后申请表</span></a><span>  <span class="Apple-converted-space"> </span></span><a target="_blank" href="https://www.cmhk.com/uploadfiles/201801/20180105173148874.doc"><span>专家推荐信</span></a><span>  <span class="Apple-converted-space"> </span></span><a target="_blank" href="https://www.cmhk.com/uploadfiles/202107/20210719172546975.doc"><span>常见问题解答</span></a>
</h2>
<p style="color:#555555;font-family:微软雅黑, 宋体, "font-size:14px;">
<span></span>
</p>
https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/gfjgxx - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 国防军工信息]]></title>
        <link>https://scc.pku.edu.cn/</link>
        <atom:link href="https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/gfjgxx" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 国防军工信息 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Tue, 20 Jul 2021 11:30:37 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[中电科四十六所2021届校园招聘

                        
                        2021-03-07 11:50:12]]></title>
            <description><![CDATA[<div class="job-head" style="padding:0px;margin:0px;font-weight:bold;color:#333333;font-family:微软雅黑, 黑体;background-color:#FFFFFF;">
招聘文本:
</div>
<div id="content-div" style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 黑体;background-color:#FFFFFF;">
<span style="font-family:"background-color:#FFFFFF;">中国电子科技集团公司第四十六研究所</span><br>
<span style="font-family:"background-color:#FFFFFF;">2021年度校园招聘简章</span><br>
https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/sxxx - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 实习信息]]></title>
        <link>https://scc.pku.edu.cn/</link>
        <atom:link href="https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/sxxx" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 实习信息 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Tue, 20 Jul 2021 11:30:41 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[国务院发展研究中心信息中心2021年实习生招聘启事]]></title>
            <description><![CDATA[<p class="MsoNormal" align="left" style="text-indent:32pt;">
一、国务院发展研究中心信息中心简介
</p>
<p class="MsoNormal" align="left" style="text-indent:32pt;">
<span>国务院发展研究中心信息中心是国务院发展研究中心直属事业单位,主要职责是为国务院发展研究中心政策咨询研究提供数据、信息、资料支持与服务;编辑报送国务院发展研究中心《调查研究报告》、《调查研究报告择要》等内部研究成果;组织实施政策咨询研究信息化工作,管理国务院发展研究中心门户网站(www.drc.gov.cn);与中央及地方机构开展信息交流与合作,为企事业单位提供信息咨询服务;组织开展政策咨询课题调研,与中央部委、地方政府以及企事业单位开展课题合作研究。</span>
</p>
<p class="MsoNormal" align="left" style="text-indent:32pt;">
二、实习岗位
</p>
https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/cyxx - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 
创业信息
]]></title>
        <link>https://scc.pku.edu.cn/</link>
        <atom:link href="https://rsshub-do-not-use-jo6lckd7z-diy.vercel.app/pku/scc/recruit/cyxx" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 
创业信息
 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Tue, 20 Jul 2021 11:30:43 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[关于评选2018年北京地区高校大学生优秀创业团队的通知]]></title>
            <description><![CDATA[<p class="MsoNormal" style="text-indent:28.0pt;">
为全面贯彻落实国家和北京市关于大学生就业创业工作要求,深入实施《北京高校高质量就业创业计划》,切实对高校大学生创业给予支持,树立大学生创业典型,营造良好的创新创业氛围,2018年,市教委将继续开展北京地区高校大学生优秀创业团队评选,并同时开展高校优秀组织奖评选工作。现将有关事项通知如下:
</p>
<p class="MsoNormal">
<b> 一、申报对象</b> 

Connection: 'keep-alive',
'proxy-connection': 'keep-alive',
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ua 无法使用配置中的 ua?

})
.get();

const sorted = list.sort((a, b) => b.pubDate.getTime() - a.pubDate.getTime()).slice(0, 10);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

排序原因是?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get 请求一次会拿到1000多条数据,其中前几条是置顶信息,之后的按时间顺序排列。因此需要重新按时间排序,过滤一下置顶信息。

const detail_page = await got({ method: 'get', url: item.link, headers });
const detail = cheerio.load(detail_page.data);
const script = detail('script', 'div#content-div').html();
const content_route = script.match(/\$\("#content-div"\).load\("(\S+)"\)/)[1];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

示例报错?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本地没能复现这个问题,自己部署了一下,发现每次部署完后第一次请求会报错,之后的请求正常,可能和请求header有关,我再看一看。


ctx.state.data = {
title: `北京大学学生就业指导服务中心 - ${feed_title}`,
link: baseUrl,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

给出对应分类的 link

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@github-actions
Copy link
Copy Markdown
Contributor

Successfully generated as following:

https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 招聘信息]]></title>
        <link>https://scc.pku.edu.cn/home!recruit.action?category=1&#38;jobType=110001</link>
        <atom:link href="https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 招聘信息 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Sat, 24 Jul 2021 02:59:13 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[用人单位邀请函 | 北京大学2022届毕业生人才精准对接招聘会]]></title>
            <description><![CDATA[<p class="MsoNormal" style="color:#333333;font-family:微软雅黑, 黑体;font-size:14px;background:#FFFFFF;">
<span style="font-size:16px;">尊敬的用人单位:</span>
</p>
<p class="MsoNormal" style="color:#333333;font-family:微软雅黑, 黑体;font-size:14px;background:#FFFFFF;">
<span style="font-size:16px;">       在疫情防控常态化背景下,为满足用人单位招才引智需求,促进北京大学2022届毕业生更加充分更高质量就业,</span><span style="font-size:16px;">进一步加深北京大学与各重点用人单位之间的合作关系,</span><span style="font-size:16px;">北京大学学生就业指导服务中心拟于</span><span style="font-size:16px;">9月25日举办“北京大学2022届毕业生人才精准对接招聘会”。</span><span style="font-size:16px;">借此良机</span><span style="font-size:16px;">我们诚挚邀请来自五湖四海、各行各业的重点用人单位莅临燕园,广纳贤才!</span><span style="font-size:16px;">衷心感谢各用人单位长期以来对我校就业工作的大力支持!</span>
</p>
<p class="MsoNormal" style="color:#333333;font-family:微软雅黑, 黑体;font-size:14px;background-color:#FFFFFF;">
<span style="font-size:16px;"> </span>
</p>
https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/xwrd - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 
新闻热点
]]></title>
        <link>https://scc.pku.edu.cn/home!newsHome.action?category=12</link>
        <atom:link href="https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/xwrd" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 
新闻热点
 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Sat, 24 Jul 2021 02:59:17 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[北京大学欢送2021届赴重点行业领域就业毕业生]]></title>
            <description><![CDATA[<p style="text-indent:2em;color:#292929;font-family:"background-color:#FFFFFF;">
7月8日和9日,北京大学先后举办两场2021届赴重点行业领域就业毕业生欢送会。党委书记邱水平,校长郝平,党委副书记、副校长陈宝剑等出席会议。会议由学生就业指导服务中心主任陈征微主持。
</p>
<p style="text-align:center;color:#292929;font-family:"background-color:#FFFFFF;">
<img src="http://pkunews.pku.edu.cn/images/2021-07/a82f3ccb9c79428fb52a4acf0a050d4d.jpeg" width="463" height="309" style="width:550px;height:auto;" referrerpolicy="no-referrer">
https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/tzgg - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 
通知公告
]]></title>
        <link>https://scc.pku.edu.cn/home!newsHome.action?category=13</link>
        <atom:link href="https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/tzgg" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 
通知公告
 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Sat, 24 Jul 2021 02:59:22 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[用人单位邀请函 | 北京大学2022届毕业生人才精准对接招聘会]]></title>
            <description><![CDATA[<p class="MsoNormal" style="background:#FFFFFF;">
尊敬的用人单位:
</p>
<p class="MsoNormal" style="background:#FFFFFF;">
       在疫情防控常态化背景下,为满足用人单位招才引智需求,促进北京大学2022届毕业生更加充分更高质量就业,<span>进一步加深北京大学与各重点用人单位之间的合作关系,</span><span>北京大学学生就业指导服务中心拟于</span>9月25日举办“北京大学2022届毕业生人才精准对接招聘会”。<span>借此良机</span>我们诚挚邀请来自五湖四海、各行各业的重点用人单位莅临燕园,广纳贤才!<span>衷心感谢各用人单位长期以来对我校就业工作的大力支持!</span>
https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/zpxx - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 招聘信息]]></title>
        <link>https://scc.pku.edu.cn/home!recruit.action?category=1&#38;jobType=110001</link>
        <atom:link href="https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/zpxx" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 招聘信息 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Sat, 24 Jul 2021 02:59:28 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[用人单位邀请函 | 北京大学2022届毕业生人才精准对接招聘会]]></title>
            <description><![CDATA[<p class="MsoNormal" style="color:#333333;font-family:微软雅黑, 黑体;font-size:14px;background:#FFFFFF;">
<span style="font-size:16px;">尊敬的用人单位:</span>
</p>
<p class="MsoNormal" style="color:#333333;font-family:微软雅黑, 黑体;font-size:14px;background:#FFFFFF;">
<span style="font-size:16px;">       在疫情防控常态化背景下,为满足用人单位招才引智需求,促进北京大学2022届毕业生更加充分更高质量就业,</span><span style="font-size:16px;">进一步加深北京大学与各重点用人单位之间的合作关系,</span><span style="font-size:16px;">北京大学学生就业指导服务中心拟于</span><span style="font-size:16px;">9月25日举办“北京大学2022届毕业生人才精准对接招聘会”。</span><span style="font-size:16px;">借此良机</span><span style="font-size:16px;">我们诚挚邀请来自五湖四海、各行各业的重点用人单位莅临燕园,广纳贤才!</span><span style="font-size:16px;">衷心感谢各用人单位长期以来对我校就业工作的大力支持!</span>
</p>
<p class="MsoNormal" style="color:#333333;font-family:微软雅黑, 黑体;font-size:14px;background-color:#FFFFFF;">
<span style="font-size:16px;"> </span>
</p>
https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/gfjgxx - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 国防军工信息]]></title>
        <link>https://scc.pku.edu.cn/home!recruitList.action?category=1&#38;jobType=110002</link>
        <atom:link href="https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/gfjgxx" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 国防军工信息 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Sat, 24 Jul 2021 02:59:33 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[中电科四十六所2021届校园招聘

                        
                        2021-03-07 11:50:12]]></title>
            <description><![CDATA[<div class="job-head" style="padding:0px;margin:0px;font-weight:bold;color:#333333;font-family:微软雅黑, 黑体;background-color:#FFFFFF;">
招聘文本:
</div>
<div id="content-div" style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 黑体;background-color:#FFFFFF;">
<span style="font-family:"background-color:#FFFFFF;">中国电子科技集团公司第四十六研究所</span><br>
<span style="font-family:"background-color:#FFFFFF;">2021年度校园招聘简章</span><br>
https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/sxxx - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 实习信息]]></title>
        <link>https://scc.pku.edu.cn/home!recruitList.action?category=2</link>
        <atom:link href="https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/sxxx" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 实习信息 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Sat, 24 Jul 2021 02:59:38 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[(世界500强)物产中大金属集团有限公司 2021年大宗商品“启明星”暑期实习计划]]></title>
            <description><![CDATA[<p class="MsoNormal" align="center" style="text-align:center;">
物产中大金属集团有限公司<span></span>
</p>
<p class="MsoNormal" align="center" style="text-align:center;">
2021年大宗商品<span>“</span>启明星<span>”</span>暑期实习计划<span></span>
</p>
<p class="MsoNormal" align="left" style="text-align:left;text-indent:30.95pt;">
<br>
</p>
https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/cyxx - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[北京大学学生就业指导服务中心 - 
创业信息
]]></title>
        <link>https://scc.pku.edu.cn/home!newsHome.action?category=11</link>
        <atom:link href="https://rsshub-do-not-use-db4bhamgw-diy.vercel.app/pku/scc/recruit/cyxx" rel="self" type="application/rss+xml" />
        <description><![CDATA[北京大学学生就业指导服务中心 - 
创业信息
 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Sat, 24 Jul 2021 02:59:42 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[关于评选2018年北京地区高校大学生优秀创业团队的通知]]></title>
            <description><![CDATA[<p class="MsoNormal" style="text-indent:28.0pt;">
为全面贯彻落实国家和北京市关于大学生就业创业工作要求,深入实施《北京高校高质量就业创业计划》,切实对高校大学生创业给予支持,树立大学生创业典型,营造良好的创新创业氛围,2018年,市教委将继续开展北京地区高校大学生优秀创业团队评选,并同时开展高校优秀组织奖评选工作。现将有关事项通知如下:
</p>
<p class="MsoNormal">
<b> 一、申报对象</b> 


const sorted = list.sort((a, b) => b.pubDate.getTime() - a.pubDate.getTime()).slice(0, 10);
await got({ method: 'get', url: sorted[0].link, headers });
await wait(500);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

试了很多次,发现只有这样先请求一次,延迟一段时间后再请求才行

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不能接受这个方法,不认为这是正确的答案

@fredericky123
Copy link
Copy Markdown

好像这个完成了一半吗,谢谢各位大佬的辛苦工作啊

Copy link
Copy Markdown
Collaborator

@TonyRL TonyRL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v2 script standard #8236

@TonyRL TonyRL merged commit 10acacf into DIYgod:master Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

高校就业指导中心的招聘信息RSS

4 participants