mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 05:59:00 +08:00
@@ -13,7 +13,7 @@ module.exports = async (ctx) => {
|
|||||||
sort = '';
|
sort = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
const suffix = 'search?o='.concat(order, '&q=', query, '&s=', sort, '&type=Repositories');
|
const suffix = 'search?o='.concat(order, '&q=', encodeURIComponent(query), '&s=', sort, '&type=Repositories');
|
||||||
const link = url.resolve(host, suffix);
|
const link = url.resolve(host, suffix);
|
||||||
const response = await axios.get(link);
|
const response = await axios.get(link);
|
||||||
const $ = cheerio.load(response.data);
|
const $ = cheerio.load(response.data);
|
||||||
|
|||||||
Reference in New Issue
Block a user