mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-19 06:38:55 +08:00
fix $ get
This commit is contained in:
@@ -53,7 +53,9 @@ module.exports = async (ctx) => {
|
|||||||
|
|
||||||
const $ = cheerio.load(response.data);
|
const $ = cheerio.load(response.data);
|
||||||
|
|
||||||
const list = $('.mainleft > .listlefttop > .listleftop1').slice(0, 10);
|
const list = $('.mainleft > .listlefttop > .listleftop1')
|
||||||
|
.slice(0, 10)
|
||||||
|
.get();
|
||||||
|
|
||||||
const result = await util.ProcessFeed(list, ctx.cache);
|
const result = await util.ProcessFeed(list, ctx.cache);
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,9 @@ module.exports = async (ctx) => {
|
|||||||
const data = response.data;
|
const data = response.data;
|
||||||
const $ = cheerio.load(data);
|
const $ = cheerio.load(data);
|
||||||
|
|
||||||
const $list = $('div#wp_news_w3 a').slice(0, 10);
|
const $list = $('div#wp_news_w3 a')
|
||||||
|
.slice(0, 10)
|
||||||
|
.get();
|
||||||
|
|
||||||
const resultItem = await Promise.all(
|
const resultItem = await Promise.all(
|
||||||
$list.map(async (item) => {
|
$list.map(async (item) => {
|
||||||
|
|||||||
@@ -15,7 +15,9 @@ module.exports = async (ctx) => {
|
|||||||
const data = response.data;
|
const data = response.data;
|
||||||
const $ = cheerio.load(data);
|
const $ = cheerio.load(data);
|
||||||
|
|
||||||
const $list = $('div#wp_news_w6 ul.news_list li a').slice(0, 10);
|
const $list = $('div#wp_news_w6 ul.news_list li a')
|
||||||
|
.slice(0, 10)
|
||||||
|
.get();
|
||||||
|
|
||||||
const resultItem = await Promise.all(
|
const resultItem = await Promise.all(
|
||||||
$list.map(async (item) => {
|
$list.map(async (item) => {
|
||||||
|
|||||||
@@ -15,7 +15,9 @@ module.exports = async (ctx) => {
|
|||||||
const data = response.data;
|
const data = response.data;
|
||||||
const $ = cheerio.load(data);
|
const $ = cheerio.load(data);
|
||||||
|
|
||||||
const $list = $('div.listbox tbody td a').slice(0, 10);
|
const $list = $('div.listbox tbody td a')
|
||||||
|
.slice(0, 10)
|
||||||
|
.get();
|
||||||
|
|
||||||
const resultItem = await Promise.all(
|
const resultItem = await Promise.all(
|
||||||
$list.map(async (item) => {
|
$list.map(async (item) => {
|
||||||
|
|||||||
@@ -19,7 +19,9 @@ module.exports = async (ctx) => {
|
|||||||
const data = response.data;
|
const data = response.data;
|
||||||
|
|
||||||
const $ = cheerio.load(data);
|
const $ = cheerio.load(data);
|
||||||
const list = $('.comm li').slice(0, 10);
|
const list = $('.comm li')
|
||||||
|
.slice(0, 10)
|
||||||
|
.get();
|
||||||
|
|
||||||
const result = await util.ProcessFeed(list, ctx.cache, url);
|
const result = await util.ProcessFeed(list, ctx.cache, url);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user