-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(route): Add 北京邮电大学校内通知/新闻 #15156
Conversation
[pull] master from diygod:master
import { load } from 'cheerio'; | ||
import { Context } from 'hono'; | ||
import cache from '@/utils/cache'; | ||
import got from 'got'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got
is only available dev environment and is treated as deprecated by RSSHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got
is only available dev environment and is treated as deprecated by RSSHub.
What should I use? ofetch doesn't seem to be able to get response headers, let alone handle cookies. Can I use fetch-cookies
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use ofetch in raw mode like #15140.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see tough-cookie
in the dependencies, but ofetch
shouldn't be able to use cookieJar directly, right? Do I have to manage cookies manually?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
[pull] master from diygod:master
[pull] master from diygod:master
[pull] master from diygod:master
[pull] master from diygod:master
[pull] master from diygod:master
[pull] master from diygod:master
Involved Issue / 该 PR 相关 Issue
Add 北京邮电大学校内通知/新闻
Example for the Proposed Route(s) / 路由地址示例
New RSS Route Checklist / 新 RSS 路由检查表
Puppeteer
Note / 说明
需要有北京邮电大学校园网环境。
Need to have BUPT network environment.