mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: some common-config params, close #3888
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
const buildData = require('@/utils/common-config');
|
||||
const queryString = require('query-string');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
let link = `https://www.polimi.it/tutte-le-news/`;
|
||||
@@ -10,9 +9,9 @@ module.exports = async (ctx) => {
|
||||
link,
|
||||
url: link,
|
||||
title: `Polimi News`,
|
||||
searchParams: queryString.stringify({
|
||||
params: {
|
||||
homeLink: 'https://www.polimi.it',
|
||||
}),
|
||||
},
|
||||
item: {
|
||||
item: '.container .no',
|
||||
title: `$('h3').text()`,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
const buildData = require('@/utils/common-config');
|
||||
const queryString = require('query-string');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const bookid = ctx.params.bookid;
|
||||
@@ -10,10 +9,10 @@ module.exports = async (ctx) => {
|
||||
url: link,
|
||||
title: `%title%`,
|
||||
allowEmpty: true,
|
||||
searchParams: queryString.stringify({
|
||||
params: {
|
||||
title: `$('#book_left > #h1').text().trim() + ' - 单品活动信息 - 缺书网'`,
|
||||
host,
|
||||
}),
|
||||
},
|
||||
item: {
|
||||
item: '.stacked.right_state > a',
|
||||
title: `$('.right_item .bodycol_258').text()`,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
const buildData = require('@/utils/common-config');
|
||||
const queryString = require('query-string');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = `http://www.queshu.com/sale/`;
|
||||
@@ -8,10 +7,10 @@ module.exports = async (ctx) => {
|
||||
link,
|
||||
url: link,
|
||||
title: `%title%`,
|
||||
searchParams: queryString.stringify({
|
||||
params: {
|
||||
title: '图书促销 - 缺书网',
|
||||
host,
|
||||
}),
|
||||
},
|
||||
item: {
|
||||
item: '#tb_sale tr',
|
||||
title: `$('.news_sale_detail .sale_btn').text() + ':' + $('.news_sale_title a').text()`,
|
||||
|
||||
Reference in New Issue
Block a user