mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-13 00:35:57 +08:00
refactor: rename axios to got
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
const axios = require('@/utils/axios');
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
const url = require('url');
|
||||
|
||||
async function load(link) {
|
||||
const response = await axios.get(link);
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data, { xmlMode: true });
|
||||
let result = '';
|
||||
const tmp = $('noscript article p');
|
||||
|
||||
Reference in New Issue
Block a user