Files
RSSHub/lib/v2/kuaidi100/radar.js
T
Raven-tu cb0706b167 fix(route): 修复快递100快递订单追踪路由 (#11076)
* fix:修复快递100查询服务

* Update utils.js

Extend the cookie cache time.

* refactor: migrate to v2
2022-10-14 20:01:56 +08:00

26 lines
943 B
JavaScript

module.exports = {
'kuaidi100.com': {
_name: '快递 100',
'.': [
{
title: '快递订单追踪',
docs: 'https://docs.rsshub.app/other.html#kuai-di-100',
source: '/',
target: (params, url, document) => {
const postid = document && document.querySelector('#postid').value;
const com = document && document.querySelector('#selectComBtn').childNodes[1].attributes[1].value;
if (com && com !== 'default' && postid) {
return `/kuaidi100/track/${com}/${postid}`;
}
},
},
{
title: '支持的快递公司列表',
docs: 'https://docs.rsshub.app/other.html#kuai-di-100',
source: '/',
target: '/kuaidi100/company',
},
],
},
};