rsshub 1.0.0-master.d5165be → 1.0.0-master.d553430

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.
Files changed (511) hide show
  1. package/lib/config.js +14 -1
  2. package/lib/middleware/cache/index.js +3 -0
  3. package/lib/middleware/parameter.js +13 -8
  4. package/lib/radar-rules.js +0 -178
  5. package/lib/router.js +58 -60
  6. package/lib/routes/bbc/index.js +1 -0
  7. package/lib/routes/nintendo/utils.js +1 -1
  8. package/lib/routes/sankakucomplex/post.js +1 -4
  9. package/lib/utils/puppeteer.js +11 -0
  10. package/lib/utils/request-wrapper.js +8 -2
  11. package/lib/v2/35photo/genre.js +2 -1
  12. package/lib/v2/35photo/utils.js +19 -4
  13. package/lib/v2/aicaijing/index.js +73 -0
  14. package/lib/v2/aicaijing/maintainer.js +6 -0
  15. package/lib/v2/aicaijing/radar.js +31 -0
  16. package/lib/v2/aicaijing/router.js +3 -0
  17. package/lib/v2/aicaijing/templates/description.art +4 -0
  18. package/lib/v2/aliyundrive/files.js +63 -0
  19. package/lib/v2/aliyundrive/maintainer.js +3 -0
  20. package/lib/v2/aliyundrive/radar.js +13 -0
  21. package/lib/v2/aliyundrive/router.js +3 -0
  22. package/lib/v2/appledaily/index.js +7 -11
  23. package/lib/v2/asus/bios.js +1 -0
  24. package/lib/v2/baidu/maintainer.js +7 -0
  25. package/lib/v2/baidu/radar.js +52 -0
  26. package/lib/v2/baidu/router.js +7 -0
  27. package/lib/v2/baidu/templates/forum.art +1 -0
  28. package/lib/v2/baidu/templates/post.art +4 -0
  29. package/lib/v2/baidu/tieba/forum.js +64 -0
  30. package/lib/{routes → v2/baidu}/tieba/post.js +30 -16
  31. package/lib/v2/baidu/tieba/user.js +33 -0
  32. package/lib/v2/bangumi/maintainer.js +1 -0
  33. package/lib/v2/bangumi/online.js +26 -0
  34. package/lib/v2/bangumi/radar.js +13 -2
  35. package/lib/v2/bangumi/router.js +1 -0
  36. package/lib/v2/bangumi/templates/image.art +1 -0
  37. package/lib/v2/bilibili/collection.js +34 -0
  38. package/lib/v2/bilibili/maintainer.js +2 -0
  39. package/lib/v2/bilibili/radar.js +9 -0
  40. package/lib/v2/bilibili/router.js +1 -0
  41. package/lib/v2/bilibili/vsearch.js +29 -9
  42. package/lib/v2/bluestacks/maintainer.js +3 -0
  43. package/lib/v2/bluestacks/radar.js +13 -0
  44. package/lib/v2/bluestacks/release.js +63 -0
  45. package/lib/v2/bluestacks/router.js +3 -0
  46. package/lib/v2/bnu/dwxgb.js +57 -0
  47. package/lib/v2/bnu/radar.js +7 -1
  48. package/lib/v2/bnu/router.js +1 -0
  49. package/lib/v2/china/maintainer.js +4 -0
  50. package/lib/v2/china/news/highlights/news.js +40 -0
  51. package/lib/v2/china/news/military/news.js +31 -0
  52. package/lib/v2/china/radar.js +21 -0
  53. package/lib/v2/china/router.js +4 -0
  54. package/lib/v2/cqwu/index.js +1 -1
  55. package/lib/v2/csdn/blog.js +39 -0
  56. package/lib/v2/csdn/maintainer.js +3 -0
  57. package/lib/v2/csdn/radar.js +13 -0
  58. package/lib/v2/csdn/router.js +3 -0
  59. package/lib/v2/csu/cse.js +1 -1
  60. package/lib/v2/cts/maintainer.js +3 -0
  61. package/lib/v2/cts/news.js +40 -0
  62. package/lib/v2/cts/radar.js +13 -0
  63. package/lib/v2/cts/router.js +3 -0
  64. package/lib/v2/cuc/maintainer.js +3 -0
  65. package/lib/v2/cuc/radar.js +13 -0
  66. package/lib/v2/cuc/router.js +3 -0
  67. package/lib/{routes/universities → v2}/cuc/yz.js +2 -4
  68. package/lib/v2/cw/maintainer.js +5 -0
  69. package/lib/v2/cw/master.js +28 -0
  70. package/lib/v2/cw/radar.js +25 -0
  71. package/lib/v2/cw/router.js +5 -0
  72. package/lib/v2/cw/sub.js +28 -0
  73. package/lib/v2/cw/today.js +24 -0
  74. package/lib/v2/cw/utils.js +63 -0
  75. package/lib/v2/dcard/maintainer.js +4 -0
  76. package/lib/v2/dcard/radar.js +31 -0
  77. package/lib/v2/dcard/router.js +3 -0
  78. package/lib/v2/dcard/section.js +66 -0
  79. package/lib/v2/dcard/utils.js +50 -0
  80. package/lib/v2/deepmind/blog.js +32 -0
  81. package/lib/v2/deepmind/maintainer.js +3 -0
  82. package/lib/v2/deepmind/radar.js +13 -0
  83. package/lib/v2/deepmind/router.js +3 -0
  84. package/lib/v2/diershoubing/maintainer.js +3 -0
  85. package/lib/v2/diershoubing/news.js +50 -0
  86. package/lib/v2/diershoubing/radar.js +13 -0
  87. package/lib/v2/diershoubing/router.js +3 -0
  88. package/lib/v2/diershoubing/templates/news.art +9 -0
  89. package/lib/v2/domp4/detail.js +7 -3
  90. package/lib/v2/domp4/utils.js +14 -0
  91. package/lib/v2/douyin/live.js +4 -4
  92. package/lib/v2/douyu/group.js +45 -0
  93. package/lib/v2/douyu/maintainer.js +5 -0
  94. package/lib/v2/douyu/post.js +58 -0
  95. package/lib/v2/douyu/radar.js +27 -0
  96. package/lib/{routes → v2}/douyu/room.js +0 -0
  97. package/lib/v2/douyu/router.js +5 -0
  98. package/lib/v2/douyu/templates/description.art +14 -0
  99. package/lib/v2/ehentai/ehapi.js +44 -11
  100. package/lib/v2/ehentai/maintainer.js +3 -3
  101. package/lib/v2/gamme/category.js +46 -0
  102. package/lib/v2/gamme/maintainer.js +6 -0
  103. package/lib/v2/gamme/radar.js +33 -0
  104. package/lib/v2/gamme/router.js +4 -0
  105. package/lib/v2/gamme/tag.js +57 -0
  106. package/lib/v2/github/comments.js +4 -5
  107. package/lib/v2/github/pulls.js +7 -8
  108. package/lib/v2/github/router.js +1 -1
  109. package/lib/v2/github/topic.js +1 -1
  110. package/lib/v2/gocn/jobs.js +23 -0
  111. package/lib/v2/gocn/maintainer.js +2 -1
  112. package/lib/v2/gocn/radar.js +6 -0
  113. package/lib/v2/gocn/router.js +1 -0
  114. package/lib/v2/gocn/topics.js +7 -12
  115. package/lib/v2/gocn/util.js +17 -0
  116. package/lib/{routes/sse/sserules.js → v2/gov/cnnic/index.js} +18 -13
  117. package/lib/v2/gov/maintainer.js +3 -0
  118. package/lib/v2/gov/mofcom/article.js +68 -0
  119. package/lib/v2/gov/nopss/index.js +57 -0
  120. package/lib/v2/gov/nrta/news.js +0 -1
  121. package/lib/v2/gov/radar.js +33 -0
  122. package/lib/v2/gov/router.js +3 -0
  123. package/lib/v2/greasyfork/feedback.js +31 -0
  124. package/lib/v2/greasyfork/maintainer.js +5 -0
  125. package/lib/v2/greasyfork/radar.js +25 -0
  126. package/lib/v2/greasyfork/router.js +5 -0
  127. package/lib/{routes → v2}/greasyfork/scripts.js +4 -4
  128. package/lib/v2/greasyfork/versions.js +29 -0
  129. package/lib/v2/hit/hitgs.js +46 -0
  130. package/lib/v2/hit/jwc.js +60 -0
  131. package/lib/v2/hit/maintainer.js +5 -0
  132. package/lib/v2/hit/radar.js +29 -0
  133. package/lib/v2/hit/router.js +6 -0
  134. package/lib/v2/hit/today.js +59 -0
  135. package/lib/v2/hjedd/utils.js +2 -2
  136. package/lib/v2/hupu/bbs.js +42 -21
  137. package/lib/v2/hupu/templates/description.art +21 -5
  138. package/lib/v2/huxiu/briefColumn.js +51 -0
  139. package/lib/v2/huxiu/maintainer.js +1 -0
  140. package/lib/v2/huxiu/moment.js +40 -0
  141. package/lib/v2/huxiu/radar.js +12 -0
  142. package/lib/v2/huxiu/router.js +2 -0
  143. package/lib/v2/huxiu/templates/moment.art +16 -0
  144. package/lib/v2/iresearch/maintainer.js +1 -0
  145. package/lib/v2/iresearch/radar.js +7 -1
  146. package/lib/v2/iresearch/router.js +1 -0
  147. package/lib/v2/iresearch/templates/weekly.art +11 -0
  148. package/lib/v2/iresearch/weekly.js +39 -0
  149. package/lib/v2/islander/maintainer.js +4 -0
  150. package/lib/v2/islander/radar.js +19 -0
  151. package/lib/v2/islander/router.js +4 -0
  152. package/lib/v2/islander/search.js +33 -0
  153. package/lib/v2/islander/top30event.js +28 -0
  154. package/lib/v2/ithome/maintainer.js +1 -0
  155. package/lib/v2/ithome/radar.js +11 -0
  156. package/lib/v2/ithome/router.js +1 -0
  157. package/lib/v2/ithome/tw/feeds.js +38 -0
  158. package/lib/v2/iwara/maintainer.js +1 -0
  159. package/lib/v2/iwara/radar.js +6 -0
  160. package/lib/v2/iwara/router.js +1 -0
  161. package/lib/v2/iwara/subscriptions.js +49 -0
  162. package/lib/v2/iwara/templates/subscriptions.art +1 -0
  163. package/lib/v2/javbus/maintainer.js +18 -0
  164. package/lib/v2/jiemian/list.js +60 -0
  165. package/lib/v2/jiemian/maintainer.js +4 -0
  166. package/lib/v2/jiemian/radar.js +19 -0
  167. package/lib/v2/jiemian/router.js +4 -0
  168. package/lib/v2/leetcode/dailyquestion-solution-cn.js +183 -0
  169. package/lib/v2/leetcode/dailyquestion-solution-en.js +213 -0
  170. package/lib/v2/leetcode/maintainer.js +1 -0
  171. package/lib/v2/leetcode/radar.js +12 -0
  172. package/lib/v2/leetcode/router.js +2 -0
  173. package/lib/v2/linovelib/maintainer.js +3 -0
  174. package/lib/v2/linovelib/novel.js +33 -0
  175. package/lib/v2/linovelib/radar.js +13 -0
  176. package/lib/v2/linovelib/router.js +3 -0
  177. package/lib/v2/loltw/maintainer.js +3 -0
  178. package/lib/v2/loltw/news.js +36 -0
  179. package/lib/v2/loltw/radar.js +13 -0
  180. package/lib/v2/loltw/router.js +3 -0
  181. package/lib/v2/loltw/templates/news.art +6 -0
  182. package/lib/v2/lovelive-anime/maintainer.js +4 -0
  183. package/lib/v2/lovelive-anime/news.js +56 -0
  184. package/lib/v2/lovelive-anime/radar.js +22 -0
  185. package/lib/v2/lovelive-anime/router.js +4 -0
  186. package/lib/v2/lovelive-anime/templates/description.art +1 -0
  187. package/lib/v2/lovelive-anime/topics.js +84 -0
  188. package/lib/v2/lxixsxa/discography.js +54 -0
  189. package/lib/v2/lxixsxa/information.js +48 -0
  190. package/lib/v2/lxixsxa/jsonpHelper.js +19 -0
  191. package/lib/v2/lxixsxa/maintainer.js +4 -0
  192. package/lib/v2/lxixsxa/radar.js +36 -0
  193. package/lib/v2/lxixsxa/router.js +4 -0
  194. package/lib/v2/lxixsxa/templates/disco.art +5 -0
  195. package/lib/v2/lxixsxa/templates/info.art +4 -0
  196. package/lib/v2/macfilos/blog.js +61 -0
  197. package/lib/v2/macfilos/maintainer.js +3 -0
  198. package/lib/v2/macfilos/radar.js +13 -0
  199. package/lib/v2/macfilos/router.js +3 -0
  200. package/lib/{routes → v2}/manhuagui/comic.js +27 -12
  201. package/lib/v2/manhuagui/maintainer.js +6 -0
  202. package/lib/v2/manhuagui/radar.js +33 -0
  203. package/lib/v2/manhuagui/router.js +5 -0
  204. package/lib/v2/manhuagui/subscribe.js +54 -0
  205. package/lib/v2/manhuagui/templates/manga.art +2 -0
  206. package/lib/v2/meituclub/latest.js +41 -0
  207. package/lib/v2/meituclub/maintainer.js +3 -0
  208. package/lib/v2/meituclub/radar.js +13 -0
  209. package/lib/v2/meituclub/router.js +3 -0
  210. package/lib/v2/meituclub/templates/description.art +1 -0
  211. package/lib/v2/meteor/boards.js +11 -0
  212. package/lib/v2/meteor/index.js +45 -0
  213. package/lib/v2/meteor/maintainer.js +4 -0
  214. package/lib/v2/meteor/radar.js +19 -0
  215. package/lib/v2/meteor/router.js +4 -0
  216. package/lib/v2/meteor/templates/desc.art +7 -0
  217. package/lib/v2/meteor/utils.js +90 -0
  218. package/lib/v2/mirror/index.js +3 -6
  219. package/lib/v2/nextapple/maintainer.js +3 -0
  220. package/lib/v2/nextapple/radar.js +13 -0
  221. package/lib/v2/nextapple/realtime.js +44 -0
  222. package/lib/v2/nextapple/router.js +3 -0
  223. package/lib/v2/nga/post.js +64 -9
  224. package/lib/v2/nga/radar.js +31 -48
  225. package/lib/v2/nikkei-cn/index.js +4 -1
  226. package/lib/v2/nju/exchangesys.js +46 -0
  227. package/lib/v2/nju/jw.js +43 -29
  228. package/lib/v2/nju/maintainer.js +2 -1
  229. package/lib/v2/nju/radar.js +32 -9
  230. package/lib/v2/nju/router.js +1 -0
  231. package/lib/v2/nmbxd1/forum.js +58 -0
  232. package/lib/v2/nmbxd1/maintainer.js +3 -0
  233. package/lib/v2/nmbxd1/radar.js +13 -0
  234. package/lib/v2/nmbxd1/router.js +3 -0
  235. package/lib/v2/nmbxd1/templates/description.art +65 -0
  236. package/lib/v2/nua/dc.js +53 -0
  237. package/lib/v2/nua/gra.js +21 -0
  238. package/lib/v2/nua/index.js +22 -0
  239. package/lib/v2/nua/maintainer.js +6 -0
  240. package/lib/v2/nua/radar.js +37 -0
  241. package/lib/v2/nua/router.js +6 -0
  242. package/lib/v2/nua/sxw.js +22 -0
  243. package/lib/v2/nua/utils.js +60 -0
  244. package/lib/v2/nuaa/college/cae.js +79 -0
  245. package/lib/v2/nuaa/college/cs.js +78 -0
  246. package/lib/v2/nuaa/jwc/jwc.js +21 -27
  247. package/lib/v2/nuaa/maintainer.js +4 -3
  248. package/lib/v2/nuaa/radar.js +6 -0
  249. package/lib/v2/nuaa/router.js +3 -2
  250. package/lib/v2/nuaa/utils/pypasswaf.js +1 -3
  251. package/lib/v2/nuaa/yjsy/yjsy.js +60 -41
  252. package/lib/{routes/universities → v2}/nuist/bulletin.js +8 -8
  253. package/lib/v2/nuist/cas.js +71 -0
  254. package/lib/v2/nuist/jwc.js +43 -0
  255. package/lib/v2/nuist/library/lib.js +43 -0
  256. package/lib/v2/nuist/maintainer.js +10 -0
  257. package/lib/v2/nuist/radar.js +69 -0
  258. package/lib/v2/nuist/router.js +10 -0
  259. package/lib/v2/nuist/scs.js +49 -0
  260. package/lib/v2/nuist/sese.js +45 -0
  261. package/lib/v2/nuist/xgc.js +49 -0
  262. package/lib/v2/nuist/yjs.js +60 -0
  263. package/lib/v2/oreno3d/get_sec_page_data.js +75 -0
  264. package/lib/v2/oreno3d/main.js +157 -0
  265. package/lib/v2/oreno3d/maintainer.js +7 -0
  266. package/lib/v2/oreno3d/radar.js +52 -0
  267. package/lib/v2/oreno3d/router.js +7 -0
  268. package/lib/v2/oreno3d/templates/description.art +13 -0
  269. package/lib/v2/oschina/maintainer.js +6 -0
  270. package/lib/{routes → v2}/oschina/news.js +35 -39
  271. package/lib/v2/oschina/radar.js +33 -0
  272. package/lib/v2/oschina/router.js +6 -0
  273. package/lib/v2/oschina/topic.js +53 -0
  274. package/lib/v2/oschina/user.js +50 -0
  275. package/lib/v2/pianyuan/search.js +1 -1
  276. package/lib/v2/pianyuan/utils.js +1 -1
  277. package/lib/{routes → v2}/pixiv/api/getBookmarks.js +1 -3
  278. package/lib/{routes → v2}/pixiv/api/getIllustFollows.js +1 -3
  279. package/lib/{routes → v2}/pixiv/api/getIllusts.js +1 -3
  280. package/lib/{routes → v2}/pixiv/api/getRanking.js +1 -3
  281. package/lib/{routes → v2}/pixiv/api/getUserDetail.js +1 -3
  282. package/lib/{routes → v2}/pixiv/api/searchIllust.js +1 -3
  283. package/lib/{routes → v2}/pixiv/api/searchPopularIllust.js +1 -3
  284. package/lib/{routes → v2}/pixiv/bookmarks.js +4 -3
  285. package/lib/{routes → v2}/pixiv/constants.js +0 -0
  286. package/lib/{routes → v2}/pixiv/illustfollow.js +5 -4
  287. package/lib/v2/pixiv/maintainer.js +8 -0
  288. package/lib/v2/pixiv/novels.js +35 -0
  289. package/lib/{routes → v2}/pixiv/pixiv-got.js +1 -1
  290. package/lib/v2/pixiv/radar.js +43 -0
  291. package/lib/{routes → v2}/pixiv/ranking.js +4 -3
  292. package/lib/v2/pixiv/router.js +8 -0
  293. package/lib/{routes → v2}/pixiv/search.js +4 -3
  294. package/lib/v2/pixiv/token.js +86 -0
  295. package/lib/{routes → v2}/pixiv/user.js +4 -3
  296. package/lib/{routes → v2}/pixiv/utils.js +0 -0
  297. package/lib/v2/plurk/anonymous.js +23 -0
  298. package/lib/v2/plurk/hotlinks.js +20 -0
  299. package/lib/v2/plurk/maintainer.js +9 -0
  300. package/lib/v2/plurk/news.js +23 -0
  301. package/lib/v2/plurk/radar.js +56 -0
  302. package/lib/v2/plurk/router.js +9 -0
  303. package/lib/v2/plurk/search.js +27 -0
  304. package/lib/v2/plurk/top.js +29 -0
  305. package/lib/v2/plurk/topic.js +33 -0
  306. package/lib/v2/plurk/user.js +31 -0
  307. package/lib/v2/plurk/utils.js +56 -0
  308. package/lib/v2/polkadot/home.js +34 -0
  309. package/lib/v2/polkadot/maintainer.js +3 -0
  310. package/lib/v2/polkadot/radar.js +13 -0
  311. package/lib/v2/polkadot/router.js +3 -0
  312. package/lib/v2/producthunt/today.js +8 -5
  313. package/lib/v2/qianzhan/column.js +50 -0
  314. package/lib/v2/qianzhan/maintainer.js +4 -0
  315. package/lib/v2/qianzhan/radar.js +26 -0
  316. package/lib/v2/qianzhan/rank.js +40 -0
  317. package/lib/v2/qianzhan/router.js +4 -0
  318. package/lib/v2/qidian/author.js +41 -0
  319. package/lib/{routes → v2}/qidian/chapter.js +8 -14
  320. package/lib/{routes → v2}/qidian/forum.js +1 -3
  321. package/lib/{routes → v2}/qidian/free-next.js +1 -4
  322. package/lib/{routes → v2}/qidian/free.js +3 -5
  323. package/lib/v2/qidian/maintainer.js +7 -0
  324. package/lib/v2/qidian/radar.js +41 -0
  325. package/lib/v2/qidian/router.js +7 -0
  326. package/lib/v2/qidian/templates/description.art +5 -0
  327. package/lib/v2/qweather/now.js +1 -2
  328. package/lib/v2/rarehistoricalphotos/index.js +28 -0
  329. package/lib/v2/rarehistoricalphotos/maintainer.js +3 -0
  330. package/lib/v2/rarehistoricalphotos/radar.js +13 -0
  331. package/lib/v2/rarehistoricalphotos/router.js +3 -0
  332. package/lib/v2/remnote/changelog.js +33 -0
  333. package/lib/v2/remnote/maintainer.js +3 -0
  334. package/lib/v2/remnote/radar.js +13 -0
  335. package/lib/v2/remnote/router.js +3 -0
  336. package/lib/v2/rustcc/jobs.js +39 -0
  337. package/lib/v2/rustcc/maintainer.js +3 -0
  338. package/lib/v2/rustcc/radar.js +13 -0
  339. package/lib/v2/rustcc/router.js +3 -0
  340. package/lib/v2/science/cover.js +69 -0
  341. package/lib/v2/science/current.js +41 -0
  342. package/lib/v2/science/early.js +33 -0
  343. package/lib/v2/science/maintainer.js +5 -0
  344. package/lib/v2/science/radar.js +25 -0
  345. package/lib/v2/science/router.js +5 -0
  346. package/lib/v2/science/templates/article.art +2 -0
  347. package/lib/v2/science/templates/cover.art +2 -0
  348. package/lib/v2/science/utils.js +64 -0
  349. package/lib/v2/segmentfault/blogs.js +38 -0
  350. package/lib/v2/segmentfault/maintainer.js +1 -0
  351. package/lib/v2/segmentfault/radar.js +8 -2
  352. package/lib/v2/segmentfault/router.js +1 -0
  353. package/lib/v2/sensortower/blog.js +69 -0
  354. package/lib/v2/sensortower/maintainer.js +3 -0
  355. package/lib/v2/sensortower/radar.js +13 -0
  356. package/lib/v2/sensortower/router.js +3 -0
  357. package/lib/v2/sensortower/templates/description.art +9 -0
  358. package/lib/v2/sse/convert.js +39 -0
  359. package/lib/v2/sse/disclosure.js +46 -0
  360. package/lib/v2/sse/inquire.js +45 -0
  361. package/lib/v2/sse/lawandrules.js +43 -0
  362. package/lib/v2/sse/maintainer.js +7 -0
  363. package/lib/v2/sse/radar.js +41 -0
  364. package/lib/v2/sse/renewal.js +57 -0
  365. package/lib/v2/sse/router.js +7 -0
  366. package/lib/v2/sse/templates/inquire.art +7 -0
  367. package/lib/v2/sse/templates/renewal.art +13 -0
  368. package/lib/v2/stheadline/maintainer.js +3 -0
  369. package/lib/v2/stheadline/radar.js +13 -0
  370. package/lib/v2/stheadline/router.js +3 -0
  371. package/lib/v2/stheadline/std/realtime.js +46 -0
  372. package/lib/v2/studygolang/jobs.js +37 -0
  373. package/lib/v2/studygolang/maintainer.js +3 -0
  374. package/lib/v2/studygolang/radar.js +13 -0
  375. package/lib/v2/studygolang/router.js +3 -0
  376. package/lib/v2/taptap/changelog.js +11 -10
  377. package/lib/v2/taptap/maintainer.js +3 -1
  378. package/lib/v2/taptap/radar.js +17 -0
  379. package/lib/v2/taptap/review.js +83 -21
  380. package/lib/v2/taptap/router.js +4 -1
  381. package/lib/v2/taptap/templates/imagePost.art +3 -0
  382. package/lib/v2/taptap/templates/videoPost.art +2 -1
  383. package/lib/v2/taptap/topic.js +36 -30
  384. package/lib/v2/taptap/utils.js +19 -13
  385. package/lib/v2/techflowpost/express.js +33 -0
  386. package/lib/v2/techflowpost/index.js +30 -0
  387. package/lib/v2/techflowpost/maintainer.js +4 -0
  388. package/lib/v2/{techflow520 → techflowpost}/radar.js +6 -6
  389. package/lib/v2/techflowpost/router.js +5 -0
  390. package/lib/v2/tesla/price/get-price.js +25 -0
  391. package/lib/v2/tesla/price/index.js +41 -0
  392. package/lib/v2/tesla/price/maintainer.js +3 -0
  393. package/lib/v2/tesla/price/radar.js +13 -0
  394. package/lib/v2/tesla/router.js +3 -0
  395. package/lib/v2/test/index.js +15 -0
  396. package/lib/v2/thenewslens/index.js +79 -0
  397. package/lib/v2/thenewslens/maintainer.js +10 -0
  398. package/lib/v2/thenewslens/radar.js +55 -0
  399. package/lib/v2/thenewslens/router.js +3 -0
  400. package/lib/v2/thenewslens/templates/description.art +6 -0
  401. package/lib/v2/thwiki/index.js +32 -0
  402. package/lib/v2/thwiki/maintainer.js +3 -0
  403. package/lib/v2/thwiki/radar.js +13 -0
  404. package/lib/v2/thwiki/router.js +3 -0
  405. package/lib/v2/tiktok/user.js +1 -1
  406. package/lib/v2/trending/allTrending.js +46 -19
  407. package/lib/v2/trending/templates/content.art +1 -0
  408. package/lib/v2/trow/portal.js +13 -3
  409. package/lib/v2/twitter/maintainer.js +1 -1
  410. package/lib/v2/twitter/router.js +1 -1
  411. package/lib/v2/twitter/web-api/twitter-api.js +1 -0
  412. package/lib/v2/udn/breaking-news.js +85 -0
  413. package/lib/v2/udn/maintainer.js +3 -0
  414. package/lib/v2/udn/radar.js +13 -0
  415. package/lib/v2/udn/router.js +3 -0
  416. package/lib/v2/udn/templates/figure.art +4 -0
  417. package/lib/v2/ustc/job.js +2 -2
  418. package/lib/v2/vom/featured.js +50 -0
  419. package/lib/v2/vom/maintainer.js +3 -0
  420. package/lib/v2/vom/radar.js +13 -0
  421. package/lib/v2/vom/router.js +3 -0
  422. package/lib/v2/warthunder/maintainer.js +3 -0
  423. package/lib/v2/warthunder/news.js +49 -0
  424. package/lib/v2/warthunder/radar.js +13 -0
  425. package/lib/v2/warthunder/router.js +3 -0
  426. package/lib/v2/warthunder/templates/description.art +1 -0
  427. package/lib/v2/wechat/feeddd.js +1 -0
  428. package/lib/v2/wizfile/index.js +41 -0
  429. package/lib/v2/wizfile/maintainer.js +3 -0
  430. package/lib/v2/wizfile/radar.js +13 -0
  431. package/lib/v2/wizfile/router.js +3 -0
  432. package/lib/v2/xjtu/dyyy/index.js +44 -0
  433. package/lib/v2/xjtu/maintainer.js +1 -0
  434. package/lib/v2/xjtu/radar.js +8 -0
  435. package/lib/v2/xjtu/router.js +1 -0
  436. package/lib/v2/xmnn/epaper.js +85 -0
  437. package/lib/v2/xmnn/maintainer.js +3 -0
  438. package/lib/v2/xmnn/radar.js +13 -0
  439. package/lib/v2/xmnn/router.js +3 -0
  440. package/lib/v2/xyzrank/index.js +111 -0
  441. package/lib/v2/xyzrank/maintainer.js +6 -0
  442. package/lib/v2/xyzrank/radar.js +31 -0
  443. package/lib/v2/{techflow520 → xyzrank}/router.js +0 -1
  444. package/lib/v2/xyzrank/templates/description.art +12 -0
  445. package/lib/v2/youtube/channel.js +1 -0
  446. package/lib/v2/youtube/user.js +1 -0
  447. package/lib/v2/yxdown/maintainer.js +4 -0
  448. package/lib/{routes → v2}/yxdown/news.js +11 -8
  449. package/lib/v2/yxdown/radar.js +19 -0
  450. package/lib/{routes → v2}/yxdown/recommend.js +11 -8
  451. package/lib/v2/yxdown/router.js +4 -0
  452. package/lib/v2/yxdown/utils.js +17 -0
  453. package/lib/v2/zaobao/maintainer.js +1 -1
  454. package/lib/v2/zaobao/util.js +6 -6
  455. package/lib/v2/zhihu/posts.js +4 -1
  456. package/lib/v2/zju/grs/index.js +11 -10
  457. package/lib/v2/zju/radar.js +5 -5
  458. package/lib/v2/zodgame/forum.js +54 -0
  459. package/lib/v2/zodgame/maintainer.js +3 -0
  460. package/lib/v2/zodgame/radar.js +18 -0
  461. package/lib/v2/zodgame/router.js +3 -0
  462. package/lib/v2/zodgame/templates/forum.art +1 -0
  463. package/lib/v2/zuvio/boards.js +14 -0
  464. package/lib/v2/zuvio/radar.js +13 -0
  465. package/lib/v2/zuvio/router.js +4 -0
  466. package/lib/v2/zuvio/student5.js +58 -0
  467. package/lib/v2/zuvio/templates/img.art +2 -0
  468. package/lib/v2/zuvio/templates/link.art +7 -0
  469. package/lib/v2/zuvio/templates/ref_article.art +8 -0
  470. package/lib/v2/zuvio/templates/rss.art +1 -0
  471. package/lib/v2/zuvio/templates/youtube.art +2 -0
  472. package/lib/v2/zuvio/utils.js +61 -0
  473. package/package.json +26 -17
  474. package/lib/routes/adnmb/index.js +0 -69
  475. package/lib/routes/dcard/section.js +0 -47
  476. package/lib/routes/dcard/utils.js +0 -54
  477. package/lib/routes/deepmind/blog.js +0 -43
  478. package/lib/routes/erbingapp/news.js +0 -51
  479. package/lib/routes/jiemian/list.js +0 -48
  480. package/lib/routes/jiemian/utils.js +0 -26
  481. package/lib/routes/kuaibao/index.js +0 -33
  482. package/lib/routes/mhgui/comic.js +0 -99
  483. package/lib/routes/mofcom/article.js +0 -54
  484. package/lib/routes/oschina/topic.js +0 -54
  485. package/lib/routes/oschina/u.js +0 -57
  486. package/lib/routes/oschina/user.js +0 -57
  487. package/lib/routes/pixiv/token.js +0 -74
  488. package/lib/routes/sciencemag/cover.js +0 -56
  489. package/lib/routes/sciencemag/current.js +0 -123
  490. package/lib/routes/sciencemag/early.js +0 -97
  491. package/lib/routes/sse/convert.js +0 -32
  492. package/lib/routes/sse/disclosure.js +0 -34
  493. package/lib/routes/sse/inquire.js +0 -31
  494. package/lib/routes/sse/renewal.js +0 -61
  495. package/lib/routes/tieba/forum.js +0 -88
  496. package/lib/routes/tieba/user.js +0 -36
  497. package/lib/routes/twmanhuagui/comic.js +0 -99
  498. package/lib/routes/universities/hit/jwc.js +0 -53
  499. package/lib/routes/universities/hit/today.js +0 -85
  500. package/lib/routes/universities/nuist/cas.js +0 -60
  501. package/lib/routes/universities/nuist/jwc.js +0 -66
  502. package/lib/routes/universities/nuist/library/lib.js +0 -32
  503. package/lib/routes/universities/nuist/scs.js +0 -60
  504. package/lib/routes/universities/nuist/sese.js +0 -60
  505. package/lib/routes/universities/nuist/xgc.js +0 -48
  506. package/lib/routes/universities/nuist/yjs.js +0 -63
  507. package/lib/v2/appledaily/templates/content.art +0 -7
  508. package/lib/v2/nuaa/cs/index.js +0 -87
  509. package/lib/v2/techflow520/index.js +0 -34
  510. package/lib/v2/techflow520/maintainer.js +0 -4
  511. package/lib/v2/techflow520/newsflash.js +0 -32
package/lib/config.js CHANGED
@@ -2,6 +2,8 @@ require('dotenv').config();
2
2
  const randUserAgent = require('./utils/rand-user-agent');
3
3
  let envs = process.env;
4
4
  let value;
5
+ const TRUE_UA = 'RSSHub/1.0 (+http://github.com/DIYgod/RSSHub; like FeedFetcher-Google)';
6
+
5
7
  const calculateValue = () => {
6
8
  const bilibili_cookies = {};
7
9
  const twitter_tokens = {};
@@ -40,7 +42,8 @@ const calculateValue = () => {
40
42
  listenInaddrAny: envs.LISTEN_INADDR_ANY || 1, // 是否允许公网连接,取值 0 1
41
43
  requestRetry: parseInt(envs.REQUEST_RETRY) || 2, // 请求失败重试次数
42
44
  requestTimeout: parseInt(envs.REQUEST_TIMEOUT) || 30000, // Milliseconds to wait for the server to end the response before aborting the request
43
- ua: envs.UA || randUserAgent({ browser: 'chrome', os: 'mac os', device: 'desktop' }),
45
+ ua: envs.UA ? envs.UA : envs.NO_RANDOM_UA === 'true' || envs.NO_RANDOM_UA === '1' ? TRUE_UA : randUserAgent({ browser: 'chrome', os: 'mac os', device: 'desktop' }),
46
+ trueUA: TRUE_UA,
44
47
  // cors request
45
48
  allowOrigin: envs.ALLOW_ORIGIN,
46
49
  // cache
@@ -134,6 +137,7 @@ const calculateValue = () => {
134
137
  ipb_pass_hash: envs.EH_IPB_PASS_HASH,
135
138
  sk: envs.EH_SK,
136
139
  igneous: envs.EH_IGNEOUS,
140
+ star: envs.EH_STAR,
137
141
  img_proxy: envs.EH_IMG_PROXY,
138
142
  },
139
143
  email: {
@@ -178,9 +182,15 @@ const calculateValue = () => {
178
182
  password: envs.IG_PASSWORD,
179
183
  proxy: envs.IG_PROXY,
180
184
  },
185
+ iwara: {
186
+ cookie: envs.IWARA_COOKIE,
187
+ },
181
188
  lastfm: {
182
189
  api_key: envs.LASTFM_API_KEY,
183
190
  },
191
+ manhuagui: {
192
+ cookie: envs.MHGUI_COOKIE,
193
+ },
184
194
  mastodon: {
185
195
  apiHost: envs.MASTODON_API_HOST,
186
196
  accessToken: envs.MASTODON_API_ACCESS_TOKEN,
@@ -268,6 +278,9 @@ const calculateValue = () => {
268
278
  zhihu: {
269
279
  cookies: envs.ZHIHU_COOKIES,
270
280
  },
281
+ zodgame: {
282
+ cookie: envs.ZODGAME_COOKIE,
283
+ },
271
284
  };
272
285
  };
273
286
  calculateValue();
@@ -56,6 +56,9 @@ module.exports = function (app) {
56
56
  app.context.cache = {
57
57
  ...cacheModule,
58
58
  tryGet: async (key, getValueFunc, maxAge = config.cache.contentExpire, refresh = true) => {
59
+ if (typeof key !== 'string') {
60
+ throw Error('Cache key must be a string');
61
+ }
59
62
  let v = await get(key, refresh);
60
63
  if (!v) {
61
64
  v = await getValueFunc();
@@ -1,7 +1,7 @@
1
1
  const entities = require('entities');
2
2
  const cheerio = require('cheerio');
3
3
  const { simplecc } = require('simplecc-wasm');
4
- const got = require('@/utils/got');
4
+ // const got = require('@/utils/got');
5
5
  const config = require('@/config').value;
6
6
  const RE2 = require('re2');
7
7
 
@@ -54,7 +54,9 @@ module.exports = async (ctx, next) => {
54
54
  ctx.state.data.description && (ctx.state.data.description = entities.decodeXML(ctx.state.data.description + ''));
55
55
 
56
56
  // sort items
57
- ctx.state.data.item = ctx.state.data.item.sort((a, b) => +new Date(b.pubDate || 0) - +new Date(a.pubDate || 0));
57
+ if (ctx.query.sorted !== 'false') {
58
+ ctx.state.data.item = ctx.state.data.item.sort((a, b) => +new Date(b.pubDate || 0) - +new Date(a.pubDate || 0));
59
+ }
58
60
 
59
61
  const handleItem = (item) => {
60
62
  item.title && (item.title = entities.decodeXML(item.title + ''));
@@ -252,12 +254,15 @@ module.exports = async (ctx, next) => {
252
254
  try {
253
255
  mercury_parser = mercury_parser || require('@postlight/mercury-parser');
254
256
 
255
- const res = await got(link);
256
- const $ = cheerio.load(res.data, {
257
- xmlMode: true,
258
- });
257
+ // const res = await got(link);
258
+ // const $ = cheerio.load(res.data, {
259
+ // xmlMode: true,
260
+ // });
259
261
  const result = await mercury_parser.parse(link, {
260
- html: $.html(),
262
+ // html: $.html(),
263
+ headers: {
264
+ 'User-Agent': config.ua,
265
+ },
261
266
  });
262
267
  return result;
263
268
  } catch (e) {
@@ -266,7 +271,7 @@ module.exports = async (ctx, next) => {
266
271
  });
267
272
 
268
273
  item.author = author || (parsed_result ? parsed_result.author : '');
269
- item.description = parsed_result ? parsed_result.content : description;
274
+ item.description = parsed_result ? entities.decodeXML(parsed_result.content) : description;
270
275
  });
271
276
  await Promise.all(tasks);
272
277
  }
@@ -45,41 +45,6 @@ module.exports = {
45
45
  },
46
46
  ],
47
47
  },
48
- 'pixiv.net': {
49
- _name: 'Pixiv',
50
- www: [
51
- {
52
- title: '用户收藏',
53
- docs: 'https://docs.rsshub.app/social-media.html#pixiv',
54
- source: '/users/:id/bookmarks/artworks',
55
- target: '/pixiv/user/bookmarks/:id',
56
- },
57
- {
58
- title: '用户动态',
59
- docs: 'https://docs.rsshub.app/social-media.html#pixiv',
60
- source: '/users/:id',
61
- target: '/pixiv/user/:id',
62
- },
63
- {
64
- title: '排行榜',
65
- docs: 'https://docs.rsshub.app/social-media.html#pixiv',
66
- source: '/ranking.php',
67
- target: (params, url) => `/pixiv/ranking/${new URL(url).searchParams.get('mode') || 'daily'}`,
68
- },
69
- {
70
- title: '关键词',
71
- docs: 'https://docs.rsshub.app/social-media.html#pixiv',
72
- source: ['/tags/:keyword', '/tags/:keyword/:type?'],
73
- target: (params, url) => `/pixiv/search/:keyword/${new URL(url).searchParams.get('order')}/${new URL(url).searchParams.get('mode')}`,
74
- },
75
- {
76
- title: '关注的新作品',
77
- docs: 'https://docs.rsshub.app/social-media.html#pixiv',
78
- source: '/bookmark_new_illust.php',
79
- target: '/pixiv/user/illustfollows',
80
- },
81
- ],
82
- },
83
48
  'smzdm.com': {
84
49
  _name: '什么值得买',
85
50
  www: [
@@ -202,39 +167,6 @@ module.exports = {
202
167
  },
203
168
  ],
204
169
  },
205
- 'manhuagui.com': {
206
- _name: '漫画柜',
207
- www: [
208
- {
209
- title: '漫画更新',
210
- docs: 'https://docs.rsshub.app/anime.html#kan-man-hua',
211
- source: '/comic/:id/',
212
- target: '/manhuagui/comic/:id',
213
- },
214
- ],
215
- },
216
- 'mhgui.com': {
217
- _name: '漫画柜镜像站',
218
- www: [
219
- {
220
- title: '漫画更新',
221
- docs: 'https://docs.rsshub.app/anime.html#kan-man-hua-jing-xiang-zhan',
222
- source: '/comic/:id/',
223
- target: '/mhgui/comic/:id',
224
- },
225
- ],
226
- },
227
- 'tw.manhuagui.com': {
228
- _name: '漫画柜台湾',
229
- www: [
230
- {
231
- title: '漫画更新',
232
- docs: 'https://docs.rsshub.app/anime.html#kan-man-hua-tai-wan',
233
- source: '/comic/:id/',
234
- target: '/twmanhuagui/comic/:id',
235
- },
236
- ],
237
- },
238
170
  'pgyer.com': {
239
171
  _name: '蒲公英应用分发',
240
172
  www: [
@@ -246,56 +178,6 @@ module.exports = {
246
178
  },
247
179
  ],
248
180
  },
249
- 'baidu.com': {
250
- _name: '贴吧',
251
- tieba: [
252
- {
253
- title: '帖子列表',
254
- docs: 'https://docs.rsshub.app/bbs.html#tie-ba',
255
- source: 'f',
256
- target: (params, url) => {
257
- const type = new URL(url).searchParams.get('tab');
258
- if (!type || type === 'main') {
259
- return `/tieba/forum/${new URL(url).searchParams.get('kw')}`;
260
- }
261
- },
262
- },
263
- {
264
- title: '精品帖子',
265
- docs: 'https://docs.rsshub.app/bbs.html#tie-ba',
266
- source: 'f',
267
- target: (params, url) => {
268
- const type = new URL(url).searchParams.get('tab');
269
- if (type === 'good') {
270
- return `/tieba/forum/good/${new URL(url).searchParams.get('kw')}`;
271
- }
272
- },
273
- },
274
- {
275
- title: '帖子动态',
276
- docs: 'https://docs.rsshub.app/bbs.html#tie-ba',
277
- source: '/p/:id',
278
- target: '/tieba/post/:id',
279
- },
280
- {
281
- title: '只看楼主',
282
- docs: 'https://docs.rsshub.app/bbs.html#tie-ba',
283
- source: '/p/:id',
284
- target: '/tieba/post/lz/:id',
285
- },
286
- {
287
- title: '用户帖子',
288
- docs: 'https://docs.rsshub.app/bbs.html#tie-ba',
289
- source: '/home/main',
290
- target: (params, url) => {
291
- const uid = new URL(url).searchParams.get('un');
292
- if (uid) {
293
- return `/tieba/user/${uid}`;
294
- }
295
- },
296
- },
297
- ],
298
- },
299
181
  'wineyun.com': {
300
182
  _name: '酒云网',
301
183
  www: [
@@ -396,35 +278,6 @@ module.exports = {
396
278
  },
397
279
  ],
398
280
  },
399
- 'dcard.tw': {
400
- _name: 'Dcard',
401
- www: [
402
- {
403
- title: '首頁帖子-最新',
404
- docs: 'https://docs.rsshub.app/bbs.html#dcard',
405
- source: '/f',
406
- target: '/dcard/posts/latest',
407
- },
408
- {
409
- title: '首頁帖子-熱門',
410
- docs: 'https://docs.rsshub.app/bbs.html#dcard',
411
- source: '/f',
412
- target: '/dcard/posts/popular',
413
- },
414
- {
415
- title: '板塊帖子-最新',
416
- docs: 'https://docs.rsshub.app/bbs.html#dcard',
417
- source: '/f/:section',
418
- target: '/dcard/:section/latest',
419
- },
420
- {
421
- title: '板塊帖子-熱門',
422
- docs: 'https://docs.rsshub.app/bbs.html#dcard',
423
- source: '/f/:section',
424
- target: '/dcard/:section/popular',
425
- },
426
- ],
427
- },
428
281
  'wegene.com': {
429
282
  _name: 'WeGene',
430
283
  www: [
@@ -832,37 +685,6 @@ module.exports = {
832
685
  },
833
686
  ],
834
687
  },
835
- 'qidian.com': {
836
- _name: '起点',
837
- book: [
838
- {
839
- title: '章节',
840
- docs: 'https://docs.rsshub.app/reading.html#qi-dian',
841
- source: '/info/:id',
842
- target: '/qidian/chapter/:id',
843
- },
844
- {
845
- title: '讨论区',
846
- docs: 'https://docs.rsshub.app/reading.html#qi-dian',
847
- source: '/info/:id',
848
- target: '/qidian/forum/:id',
849
- },
850
- ],
851
- www: [
852
- {
853
- title: '限免',
854
- docs: 'https://docs.rsshub.app/reading.html#qi-dian',
855
- source: '/free',
856
- target: '/qidian/free',
857
- },
858
- {
859
- title: '女生限免',
860
- docs: 'https://docs.rsshub.app/reading.html#qi-dian',
861
- source: '/mm/free',
862
- target: '/qidian/free/mm',
863
- },
864
- ],
865
- },
866
688
  'hackerone.com': {
867
689
  _name: 'HackerOne',
868
690
  '.': [
package/lib/router.js CHANGED
@@ -54,12 +54,12 @@ router.get('/weibo/search/hot', lazyloadRouteHandler('./routes/weibo/search/hot'
54
54
  router.get('/weibo/super_index/:id/:type?/:routeParams?', lazyloadRouteHandler('./routes/weibo/super_index'));
55
55
  router.get('/weibo/oasis/user/:userid', lazyloadRouteHandler('./routes/weibo/oasis/user'));
56
56
 
57
- // 贴吧
58
- router.get('/tieba/forum/:kw', lazyloadRouteHandler('./routes/tieba/forum'));
59
- router.get('/tieba/forum/good/:kw/:cid?', lazyloadRouteHandler('./routes/tieba/forum'));
60
- router.get('/tieba/post/:id', lazyloadRouteHandler('./routes/tieba/post'));
61
- router.get('/tieba/post/lz/:id', lazyloadRouteHandler('./routes/tieba/post'));
62
- router.get('/tieba/user/:uid', lazyloadRouteHandler('./routes/tieba/user'));
57
+ // 贴吧 migrated to v2
58
+ // router.get('/tieba/forum/:kw', lazyloadRouteHandler('./routes/tieba/forum'));
59
+ // router.get('/tieba/forum/good/:kw/:cid?', lazyloadRouteHandler('./routes/tieba/forum'));
60
+ // router.get('/tieba/post/:id', lazyloadRouteHandler('./routes/tieba/post'));
61
+ // router.get('/tieba/post/lz/:id', lazyloadRouteHandler('./routes/tieba/post'));
62
+ // router.get('/tieba/user/:uid', lazyloadRouteHandler('./routes/tieba/user'));
63
63
 
64
64
  // 网易云音乐
65
65
  router.get('/ncm/playlist/:id', lazyloadRouteHandler('./routes/ncm/playlist'));
@@ -116,12 +116,12 @@ router.get('/mzitu/category/:category', lazyloadRouteHandler('./routes/mzitu/cat
116
116
  router.get('/mzitu/post/:id', lazyloadRouteHandler('./routes/mzitu/post'));
117
117
  router.get('/mzitu/tag/:tag', lazyloadRouteHandler('./routes/mzitu/tag'));
118
118
 
119
- // pixiv
120
- router.get('/pixiv/user/bookmarks/:id', lazyloadRouteHandler('./routes/pixiv/bookmarks'));
121
- router.get('/pixiv/user/illustfollows', lazyloadRouteHandler('./routes/pixiv/illustfollow'));
122
- router.get('/pixiv/user/:id', lazyloadRouteHandler('./routes/pixiv/user'));
123
- router.get('/pixiv/ranking/:mode/:date?', lazyloadRouteHandler('./routes/pixiv/ranking'));
124
- router.get('/pixiv/search/:keyword/:order?/:mode?', lazyloadRouteHandler('./routes/pixiv/search'));
119
+ // pixiv migrated to v2
120
+ // router.get('/pixiv/user/bookmarks/:id', lazyloadRouteHandler('./routes/pixiv/bookmarks'));
121
+ // router.get('/pixiv/user/illustfollows', lazyloadRouteHandler('./routes/pixiv/illustfollow'));
122
+ // router.get('/pixiv/user/:id', lazyloadRouteHandler('./routes/pixiv/user'));
123
+ // router.get('/pixiv/ranking/:mode/:date?', lazyloadRouteHandler('./routes/pixiv/ranking'));
124
+ // router.get('/pixiv/search/:keyword/:order?/:mode?', lazyloadRouteHandler('./routes/pixiv/search'));
125
125
 
126
126
  // pixiv-fanbox
127
127
  router.get('/fanbox/:user?', lazyloadRouteHandler('./routes/fanbox/main'));
@@ -170,7 +170,7 @@ router.get('/geektime/column/:cid', lazyloadRouteHandler('./routes/geektime/colu
170
170
  router.get('/geektime/news', lazyloadRouteHandler('./routes/geektime/news'));
171
171
 
172
172
  // 界面新闻
173
- router.get('/jiemian/list/:cid', lazyloadRouteHandler('./routes/jiemian/list.js'));
173
+ // router.get('/jiemian/list/:cid', lazyloadRouteHandler('./routes/jiemian/list.js'));
174
174
 
175
175
  // 好奇心日报
176
176
  router.get('/qdaily/:type/:id', lazyloadRouteHandler('./routes/qdaily/index'));
@@ -188,7 +188,7 @@ router.get('/dribbble/user/:name', lazyloadRouteHandler('./routes/dribbble/user'
188
188
  router.get('/dribbble/keyword/:keyword', lazyloadRouteHandler('./routes/dribbble/keyword'));
189
189
 
190
190
  // 斗鱼
191
- router.get('/douyu/room/:id', lazyloadRouteHandler('./routes/douyu/room'));
191
+ // router.get('/douyu/room/:id', lazyloadRouteHandler('./routes/douyu/room'));
192
192
 
193
193
  // 虎牙
194
194
  router.get('/huya/live/:id', lazyloadRouteHandler('./routes/huya/live'));
@@ -338,11 +338,11 @@ router.get('/mi/bbs/board/:boardId', lazyloadRouteHandler('./routes/mi/board'));
338
338
  // Keep
339
339
  // router.get('/keep/user/:id', lazyloadRouteHandler('./routes/keep/user'));
340
340
 
341
- // 起点
342
- router.get('/qidian/chapter/:id', lazyloadRouteHandler('./routes/qidian/chapter'));
343
- router.get('/qidian/forum/:id', lazyloadRouteHandler('./routes/qidian/forum'));
344
- router.get('/qidian/free/:type?', lazyloadRouteHandler('./routes/qidian/free'));
345
- router.get('/qidian/free-next/:type?', lazyloadRouteHandler('./routes/qidian/free-next'));
341
+ // 起点 migrated to v2
342
+ // router.get('/qidian/chapter/:id', lazyloadRouteHandler('./routes/qidian/chapter'));
343
+ // router.get('/qidian/forum/:id', lazyloadRouteHandler('./routes/qidian/forum'));
344
+ // router.get('/qidian/free/:type?', lazyloadRouteHandler('./routes/qidian/free'));
345
+ // router.get('/qidian/free-next/:type?', lazyloadRouteHandler('./routes/qidian/free-next'));
346
346
 
347
347
  // 纵横
348
348
  router.get('/zongheng/chapter/:id', lazyloadRouteHandler('./routes/zongheng/chapter'));
@@ -387,8 +387,8 @@ router.get('/xuangubao/subject/:subject_id', lazyloadRouteHandler('./routes/xuan
387
387
  // router.get('/xueqiu/hots', lazyloadRouteHandler('./routes/xueqiu/hots'));
388
388
  // router.get('/xueqiu/stock_comments/:id/:titleLength?', lazyloadRouteHandler('./routes/xueqiu/stock_comments'));
389
389
 
390
- // Greasy Fork
391
- router.get('/greasyfork/:language/:domain?', lazyloadRouteHandler('./routes/greasyfork/scripts'));
390
+ // Greasy Fork migrated to v2
391
+ // router.get('/greasyfork/:language/:domain?', lazyloadRouteHandler('./routes/greasyfork/scripts'));
392
392
 
393
393
  // Gwern Bran­wen
394
394
  router.get('/gwern/:category', lazyloadRouteHandler('./routes/gwern/category'));
@@ -396,11 +396,11 @@ router.get('/gwern/:category', lazyloadRouteHandler('./routes/gwern/category'));
396
396
  // LinkedKeeper
397
397
  router.get('/linkedkeeper/:type/:id?', lazyloadRouteHandler('./routes/linkedkeeper/index'));
398
398
 
399
- // 开源中国
400
- router.get('/oschina/news/:category?', lazyloadRouteHandler('./routes/oschina/news'));
401
- router.get('/oschina/user/:id', lazyloadRouteHandler('./routes/oschina/user'));
402
- router.get('/oschina/u/:id', lazyloadRouteHandler('./routes/oschina/u'));
403
- router.get('/oschina/topic/:topic', lazyloadRouteHandler('./routes/oschina/topic'));
399
+ // 开源中国 migrated to v2
400
+ // router.get('/oschina/news/:category?', lazyloadRouteHandler('./routes/oschina/news'));
401
+ // router.get('/oschina/user/:id', lazyloadRouteHandler('./routes/oschina/user'));
402
+ // router.get('/oschina/u/:id', lazyloadRouteHandler('./routes/oschina/u'));
403
+ // router.get('/oschina/topic/:topic', lazyloadRouteHandler('./routes/oschina/topic'));
404
404
 
405
405
  // MIT Technology Review
406
406
  router.get('/technologyreview', lazyloadRouteHandler('./routes/technologyreview/index'));
@@ -527,9 +527,9 @@ router.get('/hhu/libNews', lazyloadRouteHandler('./routes/universities/hhu/libNe
527
527
  // 河海大学常州校区
528
528
  router.get('/hhu/libNewsc', lazyloadRouteHandler('./routes/universities/hhu/libNewsc'));
529
529
 
530
- // 哈尔滨工业大学
531
- router.get('/hit/jwc', lazyloadRouteHandler('./routes/universities/hit/jwc'));
532
- router.get('/hit/today/:category', lazyloadRouteHandler('./routes/universities/hit/today'));
530
+ // 哈尔滨工业大学 migrated to v2
531
+ // router.get('/hit/jwc', lazyloadRouteHandler('./routes/universities/hit/jwc'));
532
+ // router.get('/hit/today/:category', lazyloadRouteHandler('./routes/universities/hit/today'));
533
533
 
534
534
  // 哈尔滨工业大学(深圳)
535
535
  router.get('/hitsz/article/:category?', lazyloadRouteHandler('./routes/universities/hitsz/article'));
@@ -597,7 +597,7 @@ router.get('/cas/iee/kydt', lazyloadRouteHandler('./routes/universities/cas/iee/
597
597
  router.get('/cas/cg/:caty?', lazyloadRouteHandler('./routes/universities/cas/cg/index'));
598
598
 
599
599
  // 中国传媒大学
600
- router.get('/cuc/yz', lazyloadRouteHandler('./routes/universities/cuc/yz'));
600
+ // router.get('/cuc/yz', lazyloadRouteHandler('./v2/cuc/yz'));
601
601
 
602
602
  // UTdallas ISSO
603
603
  router.get('/utdallas/isso', lazyloadRouteHandler('./routes/universities/utdallas/isso'));
@@ -614,14 +614,14 @@ router.get('/cqu/sci/:category', lazyloadRouteHandler('./routes/universities/cqu
614
614
  router.get('/cqu/net/:category', lazyloadRouteHandler('./routes/universities/cqu/net/info'));
615
615
 
616
616
  // 南京信息工程大学
617
- router.get('/nuist/bulletin/:category?', lazyloadRouteHandler('./routes/universities/nuist/bulletin'));
618
- router.get('/nuist/jwc/:category?', lazyloadRouteHandler('./routes/universities/nuist/jwc'));
619
- router.get('/nuist/yjs/:category?', lazyloadRouteHandler('./routes/universities/nuist/yjs'));
620
- router.get('/nuist/xgc', lazyloadRouteHandler('./routes/universities/nuist/xgc'));
621
- router.get('/nuist/scs/:category?', lazyloadRouteHandler('./routes/universities/nuist/scs'));
622
- router.get('/nuist/lib', lazyloadRouteHandler('./routes/universities/nuist/library/lib'));
623
- router.get('/nuist/sese/:category?', lazyloadRouteHandler('./routes/universities/nuist/sese'));
624
- router.get('/nuist/cas/:category?', lazyloadRouteHandler('./routes/universities/nuist/cas'));
617
+ // router.get('/nuist/bulletin/:category?', lazyloadRouteHandler('./routes/universities/nuist/bulletin'));
618
+ // router.get('/nuist/jwc/:category?', lazyloadRouteHandler('./routes/universities/nuist/jwc'));
619
+ // router.get('/nuist/yjs/:category?', lazyloadRouteHandler('./routes/universities/nuist/yjs'));
620
+ // router.get('/nuist/xgc', lazyloadRouteHandler('./routes/universities/nuist/xgc'));
621
+ // router.get('/nuist/scs/:category?', lazyloadRouteHandler('./routes/universities/nuist/scs'));
622
+ // router.get('/nuist/lib', lazyloadRouteHandler('./routes/universities/nuist/library/lib'));
623
+ // router.get('/nuist/sese/:category?', lazyloadRouteHandler('./routes/universities/nuist/sese'));
624
+ // router.get('/nuist/cas/:category?', lazyloadRouteHandler('./routes/universities/nuist/cas'));
625
625
 
626
626
  // 成都信息工程大学
627
627
  router.get('/cuit/cxxww/:type?', lazyloadRouteHandler('./routes/universities/cuit/cxxww'));
@@ -996,10 +996,11 @@ router.get('/eeo/:column?/:category?', lazyloadRouteHandler('./routes/eeo/index'
996
996
  // 腾讯视频
997
997
  router.get('/tencentvideo/playlist/:id', lazyloadRouteHandler('./routes/tencent/video/playlist'));
998
998
 
999
- // 看漫画
1000
- router.get('/manhuagui/comic/:id/:chapterCnt?', lazyloadRouteHandler('./routes/manhuagui/comic'));
1001
- router.get('/mhgui/comic/:id/:chapterCnt?', lazyloadRouteHandler('./routes/mhgui/comic'));
1002
- router.get('/twmanhuagui/comic/:id/:chapterCnt?', lazyloadRouteHandler('./routes/twmanhuagui/comic'));
999
+ // 看漫画 migrated to v2
1000
+ // router.get('/manhuagui/comic/:id/:chapterCnt?', lazyloadRouteHandler('./routes/manhuagui/comic'));
1001
+ // router.get('/mhgui/comic/:id/:chapterCnt?', lazyloadRouteHandler('./routes/mhgui/comic'));
1002
+ // router.get('/twmanhuagui/comic/:id/:chapterCnt?', lazyloadRouteHandler('./routes/twmanhuagui/comic'));
1003
+
1003
1004
  // 拷贝漫画
1004
1005
  router.get('/copymanga/comic/:id/:chapterCnt?', lazyloadRouteHandler('./routes/copymanga/comic'));
1005
1006
 
@@ -1349,7 +1350,7 @@ router.get('/ui-cn/article', lazyloadRouteHandler('./routes/ui-cn/article'));
1349
1350
  router.get('/ui-cn/user/:id', lazyloadRouteHandler('./routes/ui-cn/user'));
1350
1351
 
1351
1352
  // Dcard
1352
- router.get('/dcard/:section/:type?', lazyloadRouteHandler('./routes/dcard/section'));
1353
+ // router.get('/dcard/:section/:type?', lazyloadRouteHandler('./routes/dcard/section'));
1353
1354
 
1354
1355
  // 北京天文馆每日一图
1355
1356
  router.get('/bjp/apod', lazyloadRouteHandler('./routes/bjp/apod'));
@@ -1945,8 +1946,8 @@ router.get('/dhl/:id', lazyloadRouteHandler('./routes/dhl/shipment-tracking'));
1945
1946
  // Japanpost
1946
1947
  router.get('/japanpost/track/:reqCode/:locale?', lazyloadRouteHandler('./routes/japanpost/track'));
1947
1948
 
1948
- // 中华人民共和国商务部
1949
- router.get('/mofcom/article/:suffix', lazyloadRouteHandler('./routes/mofcom/article'));
1949
+ // 中华人民共和国商务部 migrated to v2
1950
+ // router.get('/mofcom/article/:suffix', lazyloadRouteHandler('./routes/mofcom/article'));
1950
1951
 
1951
1952
  // 品玩
1952
1953
  router.get('/pingwest/status', lazyloadRouteHandler('./routes/pingwest/status'));
@@ -2007,12 +2008,12 @@ router.get('/sans/summit_archive', lazyloadRouteHandler('./routes/sans/summit_ar
2007
2008
  router.get('/latexstudio/home', lazyloadRouteHandler('./routes/latexstudio/home'));
2008
2009
 
2009
2010
  // 上证债券信息网 - 可转换公司债券公告
2010
- router.get('/sse/convert/:query?', lazyloadRouteHandler('./routes/sse/convert'));
2011
- router.get('/sse/renewal', lazyloadRouteHandler('./routes/sse/renewal'));
2012
- router.get('/sse/inquire', lazyloadRouteHandler('./routes/sse/inquire'));
2011
+ // router.get('/sse/convert/:query?', lazyloadRouteHandler('./routes/sse/convert'));
2012
+ // router.get('/sse/renewal', lazyloadRouteHandler('./routes/sse/renewal'));
2013
+ // router.get('/sse/inquire', lazyloadRouteHandler('./routes/sse/inquire'));
2013
2014
 
2014
2015
  // 上海证券交易所
2015
- router.get('/sse/disclosure/:query?', lazyloadRouteHandler('./routes/sse/disclosure'));
2016
+ // router.get('/sse/disclosure/:query?', lazyloadRouteHandler('./routes/sse/disclosure'));
2016
2017
 
2017
2018
  // 深圳证券交易所
2018
2019
  // router.get('/szse/notice', lazyloadRouteHandler('./routes/szse/notice'));
@@ -2185,9 +2186,9 @@ router.get('/cell/cover', lazyloadRouteHandler('./routes/cell/cover'));
2185
2186
  // router.get('/nature/highlight/:year?', lazyloadRouteHandler('./routes/nature/highlight'));
2186
2187
 
2187
2188
  // science [Sci Journal]
2188
- router.get('/sciencemag/current/:journal?', lazyloadRouteHandler('./routes/sciencemag/current'));
2189
- router.get('/sciencemag/cover', lazyloadRouteHandler('./routes/sciencemag/cover'));
2190
- router.get('/sciencemag/early/science', lazyloadRouteHandler('./routes/sciencemag/early'));
2189
+ // router.get('/sciencemag/current/:journal?', lazyloadRouteHandler('./routes/sciencemag/current'));
2190
+ // router.get('/sciencemag/cover', lazyloadRouteHandler('./routes/sciencemag/cover'));
2191
+ // router.get('/sciencemag/early/science', lazyloadRouteHandler('./routes/sciencemag/early'));
2191
2192
 
2192
2193
  // dlsite
2193
2194
  router.get('/dlsite/new/:type', lazyloadRouteHandler('./routes/dlsite/new'));
@@ -2661,9 +2662,6 @@ router.get('/hbut/cs/:type', lazyloadRouteHandler('./routes/universities/hbut/cs
2661
2662
  // acwifi
2662
2663
  router.get('/acwifi', lazyloadRouteHandler('./routes/acwifi'));
2663
2664
 
2664
- // a岛匿名版
2665
- router.get('/adnmb/:pid', lazyloadRouteHandler('./routes/adnmb/index'));
2666
-
2667
2665
  // MIT科技评论
2668
2666
  router.get('/mittrchina/:type', lazyloadRouteHandler('./routes/mittrchina'));
2669
2667
 
@@ -2962,7 +2960,7 @@ router.get('/tapechat/questionbox/:sharecode/:pagesize?', lazyloadRouteHandler('
2962
2960
  router.get('/amd/graphicsdrivers/:id/:rid?', lazyloadRouteHandler('./routes/amd/graphicsdrivers'));
2963
2961
 
2964
2962
  // 二柄APP
2965
- router.get('/erbingapp/news', lazyloadRouteHandler('./routes/erbingapp/news'));
2963
+ // router.get('/erbingapp/news', lazyloadRouteHandler('./routes/erbingapp/news'));
2966
2964
 
2967
2965
  // 电商报
2968
2966
  router.get('/dsb/area/:area', lazyloadRouteHandler('./routes/dsb/area'));
@@ -3423,7 +3421,7 @@ router.get('/totalcommander/whatsnew', lazyloadRouteHandler('./routes/totalcomma
3423
3421
  router.get('/blizzard/news/:language?/:category?', lazyloadRouteHandler('./routes/blizzard/news'));
3424
3422
 
3425
3423
  // DeepMind
3426
- router.get('/deepmind/blog/:category?', lazyloadRouteHandler('./routes/deepmind/blog'));
3424
+ // router.get('/deepmind/blog/:category?', lazyloadRouteHandler('./routes/deepmind/blog'));
3427
3425
 
3428
3426
  // 东西智库
3429
3427
  // router.get('/dx2025/:type?/:category?', lazyloadRouteHandler('./routes/dx2025/index'));
@@ -3658,7 +3656,7 @@ router.get('/6park/:id?/:type?/:keyword?', lazyloadRouteHandler('./routes/6park/
3658
3656
  // router.get('/bde4/:type?/:caty?/:area?/:year?/:order?', lazyloadRouteHandler('./routes/mp4er/index'));
3659
3657
 
3660
3658
  // 上海证券交易所
3661
- router.get('/sse/sserules/:slug?', lazyloadRouteHandler('./routes/sse/sserules'));
3659
+ // router.get('/sse/sserules/:slug?', lazyloadRouteHandler('./routes/sse/sserules'));
3662
3660
 
3663
3661
  // 游戏葡萄
3664
3662
  router.get('/gamegrape/:id?', lazyloadRouteHandler('./routes/gamegrape/index'));
@@ -3758,8 +3756,8 @@ router.get('/kingarthur/:type', lazyloadRouteHandler('./routes/kingarthur/index'
3758
3756
  // router.get('/news/whxw', lazyloadRouteHandler('./routes/news/whxw'));
3759
3757
 
3760
3758
  // 游讯网
3761
- router.get('/yxdown/recommend', lazyloadRouteHandler('./routes/yxdown/recommend'));
3762
- router.get('/yxdown/news/:category?', lazyloadRouteHandler('./routes/yxdown/news'));
3759
+ // router.get('/yxdown/recommend', lazyloadRouteHandler('./routes/yxdown/recommend'));
3760
+ // router.get('/yxdown/news/:category?', lazyloadRouteHandler('./routes/yxdown/news'));
3763
3761
 
3764
3762
  // BabeHub
3765
3763
  router.get('/babehub/search/:keyword?', lazyloadRouteHandler('./routes/babehub/search'));
@@ -85,6 +85,7 @@ module.exports = async (ctx) => {
85
85
  ctx.state.data = {
86
86
  title,
87
87
  link,
88
+ image: 'https://www.bbc.com/favicon.ico',
88
89
  description: title,
89
90
  item: items,
90
91
  };
@@ -65,7 +65,7 @@ const ProcessItem = (list, caches) =>
65
65
  const ProcessNews = (list, caches) =>
66
66
  Promise.all(
67
67
  list.map(async (item) => {
68
- const other = await caches.tryGet(item.link, () => loadNews('https://www.nintendo.com.hk' + item.url));
68
+ const other = await caches.tryGet(item.url, () => loadNews('https://www.nintendo.com.hk' + item.url));
69
69
  return Promise.resolve(Object.assign({}, item, other));
70
70
  })
71
71
  );
@@ -7,10 +7,7 @@ module.exports = async (ctx) => {
7
7
  url: 'https://idol.sankakucomplex.com/post/atom',
8
8
  });
9
9
 
10
- const $ = cheerio.load(response.data, {
11
- normalizeWhitespace: true,
12
- xmlMode: true,
13
- });
10
+ const $ = cheerio.load(response.data);
14
11
 
15
12
  ctx.state.data = {
16
13
  title: 'Posts | Idol Complex - Idol & Cosplay Images',
@@ -1,5 +1,6 @@
1
1
  const config = require('@/config').value;
2
2
  let puppeteer = require('puppeteer');
3
+ const proxyChain = require('proxy-chain');
3
4
 
4
5
  const options = {
5
6
  args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-infobars', '--window-position=0,0', '--ignore-certificate-errors', '--ignore-certificate-errors-spki-list', `--user-agent=${config.ua}`],
@@ -7,6 +8,13 @@ const options = {
7
8
  ignoreHTTPSErrors: true,
8
9
  };
9
10
 
11
+ let proxyUri;
12
+ if (config.proxyUri && typeof config.proxyUri === 'string') {
13
+ proxyUri = config.proxyUri;
14
+ } else if (config.proxy && config.proxy.protocol && config.proxy.host && config.proxy.port) {
15
+ proxyUri = `${config.proxy.protocol}://${config.proxy.host}:${config.proxy.port}`;
16
+ }
17
+
10
18
  /**
11
19
  * @param {Object} extraOptions
12
20
  * @param {boolean} extraOptions.stealth - Use puppeteer-extra-plugin-stealth
@@ -41,6 +49,9 @@ module.exports = async (extraOptions = {}) => {
41
49
  puppeteer.use(require('puppeteer-extra-plugin-stealth')());
42
50
  }
43
51
  let browser;
52
+ if (proxyUri) {
53
+ options.args.push(`--proxy-server=${await proxyChain.anonymizeProxy(proxyUri)}`);
54
+ }
44
55
  if (config.puppeteerWSEndpoint) {
45
56
  browser = await puppeteer.connect({
46
57
  browserWSEndpoint: config.puppeteerWSEndpoint,