Files
RSSHub/lib/v2/wechat/radar.js
2023-08-15 03:12:12 +01:00

105 lines
3.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
module.exports = {
'careerengine.us': {
_name: '微信',
posts: [
{
title: '公众号CareerEngine 来源)',
docs: 'https://docs.rsshub.app/routes/new-media#wei-xin',
source: ['/author/*id/posts'],
target: (params) => `/wechat/ce/${params.id}`,
},
],
},
'cimidata.com': {
_name: '微信',
'.': [
{
title: '公众号(二十次幂来源)',
docs: 'https://docs.rsshub.app/routes/new-media#wei-xin',
source: ['/a/:id'],
target: '/wechat/ce/:id',
},
],
},
'data258.com': {
_name: '微信',
mp: [
{
title: '公众号(微阅读来源)',
docs: 'https://docs.rsshub.app/routes/new-media#wei-xin',
source: ['/', '/article/category/:id'],
target: '/wechat/data258/:id?',
},
],
},
'hamibot.com': {
_name: '微信',
feed: [
{
title: '公众号feeddd 来源)',
docs: 'https://docs.rsshub.app/routes/new-media#wei-xin',
source: ['/'],
},
],
},
'mp.weixin.qq.com': {
_name: '微信',
'.': [
{
title: '公众平台系统公告栏目',
docs: 'https://docs.rsshub.app/routes/new-media#wei-xin',
source: ['/cgi-bin/announce'],
target: '/wechat/announce',
},
],
},
'privacyhide.com': {
_name: '微信',
wechat: [
{
title: '公众号wechat-feeds 来源)',
docs: 'https://docs.rsshub.app/routes/new-media#wei-xin',
},
],
},
'sogou.com': {
_name: '微信',
weixin: [
{
title: '公众号(搜狗来源)',
docs: 'https://docs.rsshub.app/routes/new-media#wei-xin',
source: ['/weixin'],
target: (_, url) => {
const id = new URL(url).searchParams.get('query');
if (id === null) {
return false;
}
return `/wechat/sogou/${id}`;
},
},
],
},
'wxnmh.com': {
_name: '微信',
'.': [
{
title: '公众号wxnmh.com 来源)',
docs: 'https://docs.rsshub.app/routes/new-media#wei-xin',
source: ['/:id'],
target: (params) => `/wechat/wxnmh/${params.id.replace('user-', '').replace('.htm', '')}`,
},
],
},
'xlab.app': {
_name: '微信',
wechat2rss: [
{
title: '公众号wechat2rss 来源)',
docs: 'https://docs.rsshub.app/routes/new-media#wei-xin',
source: ['/feed/:id'],
target: (params) => `/wechat/wechat2rss/${params.id.replace('.xml', '')}`,
},
],
},
};