Files
RSSHub/lib/v2/wechat/radar.js
任平生 9d9926d0bf fix(utils): 修复抓取微信已删除文章时遇到的报错 (#9589)
* fix(utils): 支持微信公众号单图片文章抓取

* fix(utils): 支持输出微信公众号转载文章阅读原文链接

* fix(utils): 修复抓取微信已删除文章时遇到的报错

* refactor: migrate to v2

Co-authored-by: blankyu(于海洋) <blankyu@tencent.com>
2022-04-21 21:40:16 +08:00

88 lines
2.5 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/new-media.html#wei-xin',
source: ['/author/*id/posts'],
target: (params) => `/wechat/ce/${params.id}`,
},
],
},
'cimidata.com': {
_name: '微信',
'.': [
{
title: '公众号(二十次幂来源)',
docs: 'https://docs.rsshub.app/new-media.html#wei-xin',
source: ['/a/:id'],
target: '/wechat/ce/:id',
},
],
},
'data258.com': {
_name: '微信',
mp: [
{
title: '公众号(微阅读来源)',
docs: 'https://docs.rsshub.app/new-media.html#wei-xin',
source: ['/', '/article/category/:id'],
target: '/wechat/data258/:id?',
},
],
},
'feeddd.org': {
_name: '微信',
'.': [
{
title: '公众号feeddd 来源)',
docs: 'https://docs.rsshub.app/new-media.html#wei-xin',
source: ['/'],
},
],
},
'mp.weixin.qq.com': {
_name: '微信',
'.': [
{
title: '公众平台系统公告栏目',
docs: 'https://docs.rsshub.app/new-media.html#wei-xin',
source: ['/cgi-bin/announce'],
target: '/wechat/announce',
},
],
},
'privacyhide.com': {
_name: '微信',
wechat: [
{
title: '公众号wechat-feeds 来源)',
docs: 'https://docs.rsshub.app/new-media.html#wei-xin',
},
],
},
'wemp.app': {
_name: '微信',
'.': [
{
title: '公众号wemp.app 来源)',
docs: 'https://docs.rsshub.app/new-media.html#wei-xin',
source: ['/accounts/:id'],
target: '/wechat/wemp/:id',
},
],
},
'wxnmh.com': {
_name: '微信',
'.': [
{
title: '公众号wxnmh.com 来源)',
docs: 'https://docs.rsshub.app/new-media.html#wei-xin',
source: ['/:id'],
target: (params) => `/wechat/wxnmh/${params.id.replace('user-', '').replace('.htm', '')}`,
},
],
},
};