mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
feat(route): Add request throttling for apnews (#13193)
* feat(route): Add request throttling for apnews * Update topics.js
This commit is contained in:
@@ -12,6 +12,7 @@ module.exports = async (ctx) => {
|
||||
const items = await Promise.all(
|
||||
$('.PagePromo-content')
|
||||
.get()
|
||||
.slice(0, ctx.query.limit ? parseInt(ctx.query.limit) : Infinity)
|
||||
.map((e) => ({
|
||||
title: $(e).find('span.PagePromoContentIcons-text').text(),
|
||||
link: $(e).find('a').attr('href'),
|
||||
|
||||
Reference in New Issue
Block a user