Giter VIP home page Giter VIP logo

bulletin-issues-transferred's Issues

添加通知来源:延河课堂更新日志

请确保这个来源不需登录就能访问到。

$ https cbiz.yanhekt.cn/v1/notice/list xclient-signature:… xclient-timestamp:… xclient-version:v1 Xdomain-Client:web_user X-TRACE-ID:… Referer:https://www.yanhekt.cn with_brief==false
{
    "code": 0,
    "data": [
        {
            "content": "<p></p>",
            "created_at": "2023-03-31 17:28:49",
            "description": "<p><span style=\"line-height:1.5\"><span style=\"font-size:16px\">1、<span style=\"color:#c0392b\"><strong>全自动、无感</strong></span>课堂考勤</span></span></p><p><span style=\"line-height:1.5\"><span style=\"font-size:16px\">2、<span style=\"color:#c0392b\"><strong>AI识别</strong></span>辅助巡视</span></span></p><p><span style=\"line-height:1.5\"><span style=\"font-size:16px\">3、提升考勤管理效率</span></span></p><p></p><p></p><div class=\"media-wrap image-wrap\"><img class=\"media-wrap image-wrap\" src=\"https://coss.yanhekt.cn/images/75/fb/75fb0f1f56bbc408f6fdab57e73cb9f1.png\" width=\"709px\" height=\"358px\" style=\"width:709px;height:358px\"/></div><p></p><p><span style=\"color:#000000\"><span style=\"font-size:16px\"><span style=\"background-color:#ffffff\">温馨提示:出勤数据基于巡视视频自动识别,准确率受光线、画面清晰度影响较大,识别结果仅供参考哦~</span></span></span></p><p></p><p></p><p></p><p></p><p></p><p></p>",
            "id": 8,
            "sort": 0,
            "status": 1,
            "title": "AI技术融入课堂!",
            "updated_at": "2023-03-31 17:30:51"
        },
    …]
    "message": ""
}

有些通知的标题不全

比如“求是书院关于开展2021-2022学年社会捐助类助学金(部分&#x...”。

这不能怪我啊,我们学校网站上就不全……

FetchError: ETIMEDOUT

从 2023-10-02 10时(UTC+8)开始,持续访问超时,出问题的通知来源不定。至今(2023-10-09)仍未解决。

file:///…/bulletin-issues-transferred/node_modules/node-fetch/src/index.js:108
                       reject(new FetchError(`request to ${request.url} failed, reason: ${error.message}`, 'system', error)>
                              ^
FetchError: request to https://ice.bit.edu.cn/xxfw/tzgg1/index.htm failed, reason: connect ETIMEDOUT 114.247.56.92:443

在校外本地运行常常也如此,获取十几个通知来源后就超时。在校内本地运行正常。

可能的解决方案

出现错误时进度条异常

抓取通知 ████████████████████████████████░░░░░░░░ 80% | 20/25 | 已用2s,预计还需1s⚠ 未从“资助公示”获取到任何通知。将忽略。
抓取通知 ████████████████████████████████████████ 100% | 25/25 | 已用2s,预计还需0s
共筛选出272项通知。
未发现新通知。

添加通知来源:课程

名称

课程

全名

教学运行(课表、课程调整、选课)

通知页面的链接

https://jxzx.bit.edu.cn/jxyx/index.htm

rows

div.articleList li

其它选择器

No response

补充信息

有些事务从教务部、教学运行与考务中心转到了开课学院,所以就从通知公告改到这里了。

除了我自己,还有别人问到这个来源。

无法在校外使用

基本上换用“资源访问控制系统”的链接就行,但需要登录。

[proxy] 第二课堂的 URL 混乱

当前:

http://dekt.bit.edu.cn/http/77726476706e69737468656265737421f4f24a8869326144300d8db9d6562d/portal/CourseView.jsp?course_id=778093140657

期望:

http://dekt.bit.edu.cn/portal/CourseView.jsp?course_id=778093140657
或
http://webvpn.bit.edu.cn/http/77726476706e69737468656265737421f4f24a8869326144300d8db9d6562d/portal/CourseView.jsp?course_id=778093140657

原因

第二课堂的 URL 是相对/的路径。

<a href="/http/77726476706e69737468656265737421f4f24a8869326144300d8db9d6562d/portal/CourseView.jsp?course_id=674589397079" target="_self">【领航讲堂】《戏剧写作》</a>

其它网站则相对当前页面。

<a href="details.html?id=93"><span class="dot">·</span>2023年美国大学生数学建模竞赛(MCM/ICM)报名通知(2月13日更新)</a>

“党政部”每次的结果不稳定

具体来说,最后两个通知是同一天(2021年10月31日)发的,刚好截止在它们俩之间,导致获取通知时有时是第一个,有时是第二个。

而现在一旦获取到新通知,就会把上次的结果“忘记”(覆盖掉),因此常常会把这俩通知当成新的。

发现1项新通知。
 1  党政部|关于启用“**北京理工大学先进结构技术研究院委员会”印章的通知
    https://dzb.bit.edu.cn/cms/web/search/download.jsp?id=6ac6e41f64c247de985162d2a639e62d
    2021/12/21 下午7:26:45

RSS feed does not validate

问题

https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fhaobit.top%2Fdev%2Ffeed.rss

This feed does not validate.

[line 1](https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fhaobit.top%2Fdev%2Ffeed.rss#l1), column 12306: XML parsing error: <unknown>:1:12350: not well-formed (invalid token) [[help](https://validator.w3.org/feed/docs/error/SAXError.html)]

    ... tegory>医学</category></item><item><title>北京理工大学管理与经济学院2024年接收优秀应届本科毕业生推荐免 ...

原因

这儿有个\u000f

$ https haobit.top/dev/feed.rss | bat -l rss
…
<title>北京理工大学管理与经济学院2024年接收优秀应届本科毕业生推
荐免试攻读研究生(含本直博生^O...</title>

上游网站就不对。

图片

Relates-to: #3

记录获取时间

通知的时间并不单调,下游项目无法了解哪些通知是新的,只能自己记录。如果记录获取时间,保证它单调递增且固定,下游只需记录上次更新时间即可。

新字段的名字还没想好,可能叫updatedfetched_ataccessd_onappeareddiscoveredseen等,另外可参考 RFC 4287: The Atom Syndication FormatGB/T 7714—2015《信息与文献 参考文献著录规则》 §8.4.4 公告日期、更新日期、引用日期。

添加通知来源:i北理(桌面端)


通知本身无需登录:

{
    "errcode": 0,
    "inBoxList": [
        {
            "author": "行政办公室",
            "canDelete": false,
            "canEdit": false,
            "categoryId": "c05114cba0d6f357e5a4fbdca0bb2369",
            "categoryName": "管理公告",
            "content": "全体师生员工:根据上级关于新冠肺炎疫情防控工作最新部署,结合校区实际情况,决定于12月9日起解除...",
            "corpId": "ding5afe027889e9ac43acaaa37764f94726",
            "coverPic": "https://static.dingtalk.com/media/lALPDgCwZVbuosHNARDNAu4_750_272.png",
            "coverPicMediaId": "@lALPDgCwZVbuosHNARDNAu4",
            "depNameList": [],
            "gmtCreate": 1670495851000,
            "gmtModified": 1670495873000,
            "id": "836d135f0ec8dd34558ad0d905073c17",
            "isDefault": 0,
            "isPushTop": 1,
            "isRead": 1,
            "isSmsDing": 0,
            "orgId": 186038178,
            "privateLevel": 0,
            "readCount": 0,
            "receiverJson": "{\"deptList\":[405386955,406159094,541031077,580183087,654174513,579914332,406862013,709482470],\"isNewEmpVisible\":false}",
            "sendCount": 0,
            "status": 0,
            "title": "关于学校良乡校区解除闭环管理的通知",
            "type": "blackboard",
            "url": "https://app.dingtalk.com/blackboard/h5/listNotice?showmenu=true&dd_progress=false&dd_share=true&ddfrom=&logkey=&corpid=ding5afe027889e9ac43acaaa37764f94726#/detail/836d135f0ec8dd34558ad0d905073c17",
            "userNameList": []
        }
        // ……
    ],
    "topNum": 4,
    "pageInfo": {
        "offset": 0,
        "totals": 75
    },
    "limit": 10,
    "errmsg": "ok",
    "page": 1,
    "isSys": false
}

数学实验中心导致 Implausible date

问题

The validator:

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

    [line 1](https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fhaobit.top%2Fdev%2Ffeed.rss#l1), column 625: Implausible date: Fri, 02 Jun 2023 16:00:00 +0000 [[help](https://validator.w3.org/feed/docs/warning/ImplausibleDate.html)]

        ... <pubDate>Fri, 02 Jun 2023 16:00:00 +0000</pubDate><link>http://mec.bit.e ...

mec

后果

这可能导致 rssto.email 不收录,每次都认为是新的。

mail

如上图,通知只有 8:00–21:00 会刷新,而不刷新时 rssto.email 也认为那是新通知。

解决方案

获取到通知时验证时间,若在未来则改为当下。

相关链接

奇怪的“第二课堂”

  • 通知列表显示的不是发布时间,而是课程时间。现在没有正确处理,造成的效果例如”获取到明天的一项的通知“。

    点进去会显示发布时间。(2023年3月4日更新:现在点进去也只有“发布时间:”几个字,没有具体发布时间了。)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.