rsshub 1.0.0-master.d77d4e5 → 1.0.0-master.d7939a6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,107 @@
1
+ import { Route } from '@/types';
2
+ import ofetch from '@/utils/ofetch';
3
+ import { parseDate } from '@/utils/parse-date';
4
+
5
+ export const route: Route = {
6
+ path: '/feeds/:category?',
7
+ categories: ['programming'],
8
+ example: '/bestblogs/feeds/featured',
9
+ parameters: { category: 'the category of articles. Can be `programming`, `ai`, `product`, `business` or `featured`. Default is `featured`' },
10
+ features: {
11
+ requireConfig: false,
12
+ requirePuppeteer: false,
13
+ antiCrawler: false,
14
+ supportBT: false,
15
+ supportPodcast: false,
16
+ supportScihub: false,
17
+ },
18
+ name: '文章列表',
19
+ maintainers: ['zhenlohuang'],
20
+ handler,
21
+ };
22
+
23
+ class APIRequest {
24
+ keyword?: string;
25
+ qualifiedFilter: string;
26
+ sourceId?: string;
27
+ category?: string;
28
+ timeFilter: string;
29
+ language: string;
30
+ userLanguage: string;
31
+ sortType: string;
32
+ currentPage: number;
33
+ pageSize: number;
34
+
35
+ constructor({ keyword = '', qualifiedFilter = 'true', sourceId = '', category = '', timeFilter = '1w', language = 'all', userLanguage = 'zh', sortType = 'default', currentPage = 1, pageSize = 10 } = {}) {
36
+ this.keyword = keyword;
37
+ this.qualifiedFilter = qualifiedFilter;
38
+ this.sourceId = sourceId;
39
+ this.category = category;
40
+ this.timeFilter = timeFilter;
41
+ this.language = language;
42
+ this.userLanguage = userLanguage;
43
+ this.sortType = sortType;
44
+ this.currentPage = currentPage;
45
+ this.pageSize = pageSize;
46
+ }
47
+
48
+ toJson(): string {
49
+ const requestBody = {
50
+ keyword: this.keyword,
51
+ qualifiedFilter: this.qualifiedFilter,
52
+ sourceId: this.sourceId,
53
+ category: this.category,
54
+ timeFilter: this.timeFilter,
55
+ language: this.language,
56
+ userLanguage: this.userLanguage,
57
+ sortType: this.sortType,
58
+ currentPage: this.currentPage,
59
+ pageSize: this.pageSize,
60
+ };
61
+
62
+ return JSON.stringify(requestBody);
63
+ }
64
+ }
65
+
66
+ async function handler(ctx) {
67
+ const defaultPageSize = 100;
68
+ const defaultTimeFilter = '1w';
69
+ const { category = 'featured' } = ctx.req.param();
70
+
71
+ const apiRequest = new APIRequest({
72
+ category,
73
+ pageSize: defaultPageSize,
74
+ qualifiedFilter: category === 'featured' ? 'true' : 'false',
75
+ timeFilter: defaultTimeFilter,
76
+ });
77
+
78
+ const apiUrl = 'https://api.bestblogs.dev/api/resource/list';
79
+ const response = await ofetch(apiUrl, {
80
+ headers: {
81
+ 'Content-Type': 'application/json',
82
+ },
83
+ method: 'POST',
84
+ body: apiRequest.toJson(),
85
+ });
86
+
87
+ if (!response || !response.data || !response.data.dataList) {
88
+ throw new Error('Invalid API response: ' + JSON.stringify(response));
89
+ }
90
+
91
+ const articles = response.data.dataList;
92
+
93
+ const items = articles.map((article) => ({
94
+ title: article.title,
95
+ link: article.url,
96
+ description: article.summary,
97
+ pubDate: parseDate(article.publishDateTimeStr),
98
+ author: Array.isArray(article.authors) ? article.authors.map((author) => ({ name: author })) : [{ name: article.authors }],
99
+ category: article.category,
100
+ }));
101
+
102
+ return {
103
+ title: `Bestblogs.dev`,
104
+ link: `https://www.bestblogs.dev/feeds`,
105
+ item: items,
106
+ };
107
+ }
@@ -1,6 +1,6 @@
1
1
  import type { Namespace } from '@/types';
2
2
 
3
3
  export const namespace: Namespace = {
4
- name: 'BlockBeats 律动',
5
- url: 'www.theblockbeats.info',
4
+ name: 'bestblogs.dev',
5
+ url: 'www.bestblogs.dev',
6
6
  };
@@ -232,14 +232,8 @@ async function handler(ctx) {
232
232
 
233
233
  const cookie = await cacheIn.getCookie();
234
234
 
235
- const response = await got({
236
- method: 'get',
237
- url: `https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space`,
238
- searchParams: {
239
- host_mid: uid,
240
- platform: 'web',
241
- features: 'itemOpusStyle,listOnlyfans,opusBigCover,onlyfansVote',
242
- },
235
+ const params = utils.addDmVerifyInfo(`host_mid=${uid}&platform=web&features=itemOpusStyle,listOnlyfans,opusBigCover,onlyfansVote`, utils.getDmImgList());
236
+ const response = await got(`https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space?${params}`, {
243
237
  headers: {
244
238
  Referer: `https://space.bilibili.com/${uid}/`,
245
239
  Cookie: cookie,
@@ -0,0 +1,168 @@
1
+ import { DataItem, Route } from '@/types';
2
+ import cache from '@/utils/cache';
3
+ import ofetch from '@/utils/ofetch';
4
+ import { parseDate } from '@/utils/parse-date';
5
+ import * as cheerio from 'cheerio';
6
+ import { AnnouncementCatalog, AnnouncementsConfig } from './types';
7
+
8
+ interface AnnouncementFragment {
9
+ reactRoot: [{ id: 'Fragment'; children: { id: string; props: object }[]; props: object }];
10
+ }
11
+
12
+ const ROUTE_PARAMETERS_CATALOGID_MAPPING = {
13
+ 'new-cryptocurrency-listing': 48,
14
+ 'latest-binance-news': 49,
15
+ 'latest-activities': 93,
16
+ 'new-fiat-listings': 50,
17
+ 'api-updates': 51,
18
+ 'crypto-airdrop': 128,
19
+ 'wallet-maintenance-updates': 157,
20
+ delisting: 161,
21
+ };
22
+
23
+ function assertAnnouncementsConfig(playlist: unknown): playlist is AnnouncementFragment {
24
+ if (!playlist || typeof playlist !== 'object') {
25
+ return false;
26
+ }
27
+ if (!('reactRoot' in (playlist as { reactRoot: unknown[] }))) {
28
+ return false;
29
+ }
30
+ if (!Array.isArray((playlist as { reactRoot: unknown[] }).reactRoot)) {
31
+ return false;
32
+ }
33
+ if ((playlist as { reactRoot: { id: string }[] }).reactRoot?.[0]?.id !== 'Fragment') {
34
+ return false;
35
+ }
36
+ return true;
37
+ }
38
+
39
+ function assertAnnouncementsConfigList(props: unknown): props is { config: { list: AnnouncementsConfig[] } } {
40
+ if (!props || typeof props !== 'object') {
41
+ return false;
42
+ }
43
+ if (!('config' in props)) {
44
+ return false;
45
+ }
46
+ if (!('list' in (props.config as { list: AnnouncementsConfig[] }))) {
47
+ return false;
48
+ }
49
+ return true;
50
+ }
51
+
52
+ const handler: Route['handler'] = async (ctx) => {
53
+ const baseUrl = 'https://www.binance.com';
54
+ const announcementCategoryUrl = `${baseUrl}/support/announcement`;
55
+ const { type } = ctx.req.param<'/binance/announcement/:type'>();
56
+ const language = ctx.req.header('Accept-Language');
57
+ const headers = {
58
+ Referer: baseUrl,
59
+ 'Accept-Language': language ?? 'en-US,en;q=0.9',
60
+ };
61
+ const announcementsConfig = (await cache.tryGet(`binance:announcements:${language}`, async () => {
62
+ const announcementRes = await ofetch<string>(announcementCategoryUrl, { headers });
63
+ const $ = cheerio.load(announcementRes);
64
+
65
+ const appData = JSON.parse($('#__APP_DATA').text());
66
+
67
+ const announcements = Object.values(appData.appState.loader.dataByRouteId as Record<string, object>).find((value) => 'playlist' in value) as { playlist: unknown };
68
+
69
+ if (!assertAnnouncementsConfig(announcements.playlist)) {
70
+ throw new Error('Get announcement config failed');
71
+ }
72
+
73
+ const listConfigProps = announcements.playlist.reactRoot[0].children.find((i) => i.id === 'TopicCardList')?.props;
74
+
75
+ if (!assertAnnouncementsConfigList(listConfigProps)) {
76
+ throw new Error("Can't get announcement config list");
77
+ }
78
+
79
+ return listConfigProps.config.list;
80
+ })) as AnnouncementsConfig[];
81
+
82
+ const announcementCatalogId = ROUTE_PARAMETERS_CATALOGID_MAPPING[type];
83
+
84
+ if (!announcementCatalogId) {
85
+ throw new Error(`${type} is not supported`);
86
+ }
87
+
88
+ const targetItem = announcementsConfig.find((i) => i.url.includes(`c-${announcementCatalogId}`));
89
+
90
+ if (!targetItem) {
91
+ throw new Error('Unexpected announcements config');
92
+ }
93
+
94
+ const link = new URL(targetItem.url, baseUrl).toString();
95
+
96
+ const response = await ofetch<string>(link, { headers });
97
+
98
+ const $ = cheerio.load(response);
99
+ const appData = JSON.parse($('#__APP_DATA').text());
100
+
101
+ const values = Object.values(appData.appState.loader.dataByRouteId as Record<string, object>);
102
+ const catalogs = values.find((value) => 'catalogs' in value) as { catalogs: AnnouncementCatalog[] };
103
+ const catalog = catalogs.catalogs.find((catalog) => catalog.catalogId === announcementCatalogId);
104
+
105
+ const item = await Promise.all(
106
+ catalog!.articles.map((i) => {
107
+ const link = `${announcementCategoryUrl}/${i.code}`;
108
+ const item = {
109
+ title: i.title,
110
+ link,
111
+ description: i.title,
112
+ pubDate: parseDate(i.releaseDate),
113
+ } as DataItem;
114
+ return cache.tryGet(`binance:announcement:${i.code}:${language}`, async () => {
115
+ const res = await ofetch(link, { headers });
116
+ const $ = cheerio.load(res);
117
+ const descriptionEl = $('#support_article > div').first();
118
+ descriptionEl.find('style').remove();
119
+ item.description = descriptionEl.html() ?? '';
120
+ return item;
121
+ }) as Promise<DataItem>;
122
+ })
123
+ );
124
+
125
+ return {
126
+ title: targetItem.title,
127
+ link,
128
+ description: targetItem.description,
129
+ item,
130
+ };
131
+ };
132
+
133
+ export const route: Route = {
134
+ path: '/announcement/:type',
135
+ categories: ['finance'],
136
+ example: '/binance/announcement/new-cryptocurrency-listing',
137
+ parameters: {
138
+ type: {
139
+ description: 'Binance Announcement type',
140
+ default: 'new-cryptocurrency-listing',
141
+ options: [
142
+ { value: 'new-cryptocurrency-listing', label: 'New Cryptocurrency Listing' },
143
+ { value: 'latest-binance-news', label: 'Latest Binance News' },
144
+ { value: 'latest-activities', label: 'Latest Activities' },
145
+ { value: 'new-fiat-listings', label: 'New Fiat Listings' },
146
+ { value: 'api-updates', label: 'API Updates' },
147
+ { value: 'crypto-airdrop', label: 'Crypto Airdrop' },
148
+ { value: 'wallet-maintenance-updates', label: 'Wallet Maintenance Updates' },
149
+ { value: 'delisting', label: 'Delisting' },
150
+ ],
151
+ },
152
+ },
153
+ name: 'Announcement',
154
+ description: `
155
+ Type category
156
+
157
+ - new-cryptocurrency-listing => New Cryptocurrency Listing
158
+ - latest-binance-news => Latest Binance News
159
+ - latest-activities => Latest Activities
160
+ - new-fiat-listings => New Fiat Listings
161
+ - api-updates => API Updates
162
+ - crypto-airdrop => Crypto Airdrop
163
+ - wallet-maintenance-updates => Wallet Maintenance Updates
164
+ - delisting => Delisting
165
+ `,
166
+ maintainers: ['enpitsulin'],
167
+ handler,
168
+ };
@@ -0,0 +1,26 @@
1
+ export interface AnnouncementsConfig {
2
+ title: string;
3
+ description: string;
4
+ url: string;
5
+ imgUrl: string;
6
+ }
7
+
8
+ export interface AnnouncementCatalog {
9
+ articles: AnnouncementArticle[];
10
+ catalogId: number;
11
+ catalogName: string;
12
+ catalogType: 1;
13
+ catalogs: [];
14
+ description: null;
15
+ icon: string;
16
+ parentCatalogId: null;
17
+ total: number;
18
+ }
19
+
20
+ export interface AnnouncementArticle {
21
+ id: number;
22
+ code: string;
23
+ title: string;
24
+ type: number;
25
+ releaseDate: number;
26
+ }
@@ -2,6 +2,7 @@ import { Route } from '@/types';
2
2
  import ofetch from '@/utils/ofetch'; // 统一使用的请求库
3
3
  import { parseDate } from '@/utils/parse-date'; // 解析日期的工具函数
4
4
  import timezone from '@/utils/timezone';
5
+ import CryptoJS from 'crypto-js';
5
6
 
6
7
  export const route: Route = {
7
8
  path: '/daily-blog',
@@ -24,9 +25,15 @@ export const route: Route = {
24
25
  },
25
26
  ],
26
27
  handler: async () => {
28
+ const r = CryptoJS.lib.WordArray.random(8).toString(CryptoJS.enc.Hex);
29
+ const n = Date.now();
30
+ const o = CryptoJS.SHA256('pHVp671B0tLkW40KCwyPrb6W1GEMEGyT' + r + n).toString(CryptoJS.enc.Hex);
27
31
  const data = await ofetch('https://daily-blog.chlinlearn.top/api/daily-blog/getBlogs/new?type=new&pageNum=1&pageSize=20', {
28
32
  headers: {
29
33
  Referer: 'https://daily-blog.chlinlearn.top/blogs/1',
34
+ 'x-req-nonce': r,
35
+ 'x-req-timestamp': n,
36
+ 'x-req-key': o,
30
37
  },
31
38
  });
32
39
  const items = data.rows.map((item) => ({
@@ -0,0 +1,8 @@
1
+ import type { Namespace } from '@/types';
2
+
3
+ export const namespace: Namespace = {
4
+ name: 'JapanGov',
5
+ url: 'go.jp',
6
+ categories: ['government'],
7
+ description: 'The Government of Japan',
8
+ };
@@ -0,0 +1,104 @@
1
+ import { Route } from '@/types';
2
+
3
+ import got from '@/utils/got';
4
+ import { load } from 'cheerio';
5
+ import timezone from '@/utils/timezone';
6
+ import { parseDate } from '@/utils/parse-date';
7
+
8
+ export const handler = async (ctx) => {
9
+ const { year = new Date().getFullYear() } = ctx.req.param();
10
+ const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit'), 10) : 52;
11
+
12
+ const rootUrl = 'https://www.niid.go.jp';
13
+ const currentUrl = new URL(`niid/ja/idwr-dl/${year}.html`, rootUrl).href;
14
+
15
+ const { data: response } = await got(currentUrl);
16
+
17
+ const $ = load(response);
18
+
19
+ const language = $('html').prop('lang');
20
+
21
+ const items = $('div.items-row')
22
+ .slice(0, limit)
23
+ .toArray()
24
+ .map((item) => {
25
+ item = $(item);
26
+
27
+ item.find('div.item-separator').remove();
28
+
29
+ const title = item.find('div.item p').first().text();
30
+ const description = item.find('div.item').html();
31
+ const link = item.find('p.body1 a').prop('href');
32
+
33
+ return {
34
+ title,
35
+ description,
36
+ pubDate: parseDate(
37
+ item
38
+ .find('p.contents')
39
+ .text()
40
+ .match(/(\d{4}年\d{1,2}月\d{1,2}日)発行/)?.[1] ??
41
+ title.match(/(\d{4})年/)?.[1] ??
42
+ year,
43
+ ['YYYY年M月D日', 'YYYY']
44
+ ),
45
+ link,
46
+ content: {
47
+ html: description,
48
+ text: item.find('div.item').text(),
49
+ },
50
+ updated: timezone(parseDate(item.find('.time').prop('datetime')), +8),
51
+ language,
52
+ enclosure_url: link,
53
+ enclosure_type: link ? `application/${link.split(/\./).pop()}` : undefined,
54
+ enclosure_title: link ? title : undefined,
55
+ };
56
+ });
57
+
58
+ const image = new URL('niid/templates/gk_memovie/images/main_header.jpg', rootUrl).href;
59
+
60
+ return {
61
+ title: `感染症発生動向調査週報ダウンロード${$('title').text()}`,
62
+ description: '感染症発生動向調査週報ダウンロード',
63
+ link: currentUrl,
64
+ item: items,
65
+ allowEmpty: true,
66
+ image,
67
+ author: 'NIID国立感染症研究所',
68
+ language,
69
+ };
70
+ };
71
+
72
+ export const route: Route = {
73
+ path: '/niid/idwr-dl/:year?',
74
+ name: '感染症発生動向調査週報ダウンロード',
75
+ url: 'www.niid.go.jp',
76
+ maintainers: ['nczitzk'],
77
+ handler,
78
+ example: '/go/niid/idwr-dl/:year?',
79
+ parameters: { year: 'Year, current year by default' },
80
+ description: `:::tip
81
+ If you subscribe to [感染症発生動向調査週報ダウンロード2024年](https://www.niid.go.jp/niid/ja/idwr-dl/2024.html),where the URL is \`https://www.niid.go.jp/niid/ja/idwr-dl/2024.html\`, extract the part \`https://www.niid.go.jp/niid/ja/idwr-dl/\` to the end, which is \`.html\`, and use it as the parameter to fill in. Therefore, the route will be [\`/go/niid/idwr-dl/2024\`](https://rsshub.app/go/niid/idwr-dl/2024).
82
+ :::`,
83
+ categories: ['government'],
84
+
85
+ features: {
86
+ requireConfig: false,
87
+ requirePuppeteer: false,
88
+ antiCrawler: false,
89
+ supportRadar: true,
90
+ supportBT: false,
91
+ supportPodcast: false,
92
+ supportScihub: false,
93
+ },
94
+ radar: [
95
+ {
96
+ source: ['www.niid.go.jp/niid/ja/idwr-dl/:year'],
97
+ target: (params) => {
98
+ const year = params.year;
99
+
100
+ return `/niid/idwr-dl/${year ? `/${year}` : ''}`;
101
+ },
102
+ },
103
+ ],
104
+ };
@@ -0,0 +1,92 @@
1
+ import { Route } from '@/types';
2
+ import { parseDate } from '@/utils/parse-date';
3
+ import ofetch from '@/utils/ofetch';
4
+
5
+ export const route: Route = {
6
+ path: '/:url',
7
+ name: 'Events',
8
+ url: 'lu.ma',
9
+ maintainers: ['cxheng315'],
10
+ example: '/luma/yieldnest',
11
+ categories: ['other'],
12
+ parameters: {
13
+ url: 'LuMa URL',
14
+ },
15
+ features: {
16
+ requireConfig: false,
17
+ requirePuppeteer: false,
18
+ antiCrawler: false,
19
+ supportBT: false,
20
+ supportPodcast: false,
21
+ supportScihub: false,
22
+ },
23
+ radar: [
24
+ {
25
+ source: ['lu.ma/:url'],
26
+ target: '/:url',
27
+ },
28
+ ],
29
+ handler,
30
+ };
31
+
32
+ async function handler(ctx) {
33
+ const endpoint = 'https://api.lu.ma/url?url=' + ctx.req.param('url');
34
+
35
+ const response = await ofetch(endpoint);
36
+
37
+ let items;
38
+
39
+ switch (response.kind) {
40
+ case 'calendar':
41
+ items = response.data.featured_items.map((item) => ({
42
+ title: item.event.name,
43
+ link: 'https://lu.ma/' + item.event.url,
44
+ author: item.hosts ? item.hosts.map((host) => host.name).join(', ') : '',
45
+ guid: item.event.api_id,
46
+ pubDate: parseDate(item.event.start_at),
47
+ itunes_item_image: item.event.cover_url,
48
+ itunes_duration: (new Date(item.event.end_at).getTime() - new Date(item.event.start_at).getTime()) / 1000,
49
+ }));
50
+ break;
51
+ case 'event':
52
+ items = [
53
+ {
54
+ title: response.data.event.name,
55
+ link: 'https://lu.ma/' + response.data.event.url,
56
+ author: response.data.hosts ? response.data.hosts.map((host) => host.name).join(', ') : '',
57
+ guid: response.data.event.api_id,
58
+ pubDate: parseDate(response.data.event.start_at),
59
+ itunes_item_image: response.data.event.cover_url,
60
+ itunes_duration: (new Date(response.data.event.end_at).getTime() - new Date(response.data.event.start_at).getTime()) / 1000,
61
+ },
62
+ ];
63
+ break;
64
+ case 'discover-place':
65
+ items = response.data.events.map((item) => ({
66
+ title: item.event.name,
67
+ link: 'https://lu.ma/' + item.event.url,
68
+ author: item.hosts ? item.hosts.map((host) => host.name).join(', ') : '',
69
+ guid: item.event.api_id,
70
+ pubDate: parseDate(item.event.start_at),
71
+ itunes_item_image: item.event.cover_url,
72
+ itunes_duration: (new Date(item.event.end_at).getTime() - new Date(item.event.start_at).getTime()) / 1000,
73
+ }));
74
+ break;
75
+ default:
76
+ items = [
77
+ {
78
+ title: 'Not Found',
79
+ link: 'Not Found',
80
+ },
81
+ ];
82
+ break;
83
+ }
84
+
85
+ return {
86
+ title: response.data.calendar ? response.data.calendar.name : response.data.place.name,
87
+ description: response.data.place ? response.data.place.description : '',
88
+ link: 'https://lu.ma/' + ctx.req.param('url'),
89
+ image: response.data.calendar ? response.data.calendar.cover_url : response.data.place.cover_url,
90
+ item: items,
91
+ };
92
+ }
@@ -0,0 +1,6 @@
1
+ import type { Namespace } from '@/types';
2
+
3
+ export const namespace: Namespace = {
4
+ name: 'LuMa',
5
+ url: 'lu.ma',
6
+ };
@@ -29,7 +29,7 @@ async function handler(ctx) {
29
29
  const response = await got(url);
30
30
  const $ = load(response.data);
31
31
 
32
- const username = $('div.username').text();
32
+ const username = $('div.bg div.title').text().replace('的个人空间', '');
33
33
 
34
34
  let items = $('div.center_subject ul li a[href^=thread]')
35
35
  .toArray()
@@ -22,8 +22,16 @@ async function getThread(item) {
22
22
  ),
23
23
  8
24
24
  );
25
- $('div[id^=postmessage_] table, fieldset, .posttags, strong').remove();
26
- item.description = $('div[id^=postmessage_]').eq(0).remove('strong').html() + ($('.defaultpost .postattachlist').html() ?? '');
25
+ $('div[id^=postmessage_] table, fieldset, .posttags, strong font, span:empty').remove();
26
+ item.description =
27
+ $('div[id^=postmessage_]')
28
+ .eq(0)
29
+ .html()
30
+ ?.replaceAll('\n', '')
31
+ .replaceAll(/\u3000{2}.+?(((?:<br>){2})|(&nbsp;))/g, (str) => `<p>${str.replaceAll('<br>', '')}</p>`)
32
+ .replaceAll(/<p>\u3000{6,}(.+?)<\/p>/g, '<center><p style="text-align:center;">$1</p></center>')
33
+ .replaceAll('&nbsp;', '')
34
+ .replace(/<br><br> +<br><br>/, '') + ($('.defaultpost .postattachlist').html() ?? '');
27
35
  return item;
28
36
  }
29
37
 
@@ -44,11 +44,7 @@ async function handler(ctx) {
44
44
  };
45
45
  });
46
46
 
47
- items = await Promise.all(
48
- items.map((item) =>
49
- cache.tryGet(item.link, async () => await getThread(item))
50
- )
51
- );
47
+ items = await Promise.all(items.map((item) => cache.tryGet(item.link, async () => await getThread(item))));
52
48
 
53
49
  return {
54
50
  title: $('head title').text(),
@@ -2,5 +2,5 @@ import type { Namespace } from '@/types';
2
2
 
3
3
  export const namespace: Namespace = {
4
4
  name: '上海交通大学',
5
- url: 'bjwb.seiee.sjtu.edu.cn',
5
+ url: 'www.sjtu.edu.cn',
6
6
  };