mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 13:08:14 +08:00
chore: bump got from 9.x to 10.x (#3875)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
const queryString = require('query-string');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const language = ctx.params.language === 'all' ? 'zh-CN' : ctx.params.language;
|
||||
@@ -10,10 +11,10 @@ module.exports = async (ctx) => {
|
||||
const res = await got({
|
||||
method: 'get',
|
||||
url: `https://greasyfork.org/${language}/scripts/${url}`,
|
||||
params: {
|
||||
searchParams: queryString.stringify({
|
||||
filter_locale: filter_locale,
|
||||
sort: 'updated',
|
||||
},
|
||||
}),
|
||||
});
|
||||
const $ = cheerio.load(res.data);
|
||||
const list = $('.script-list').find('h2');
|
||||
|
||||
Reference in New Issue
Block a user