mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-10 23:34:38 +08:00
* behance v2 & fix * behance v2 & fix * Try get & remove old radar * fetch limits * fix: maintainer
27 lines
1.0 KiB
JavaScript
27 lines
1.0 KiB
JavaScript
module.exports = {
|
|
'behance.net': {
|
|
_name: 'Behance',
|
|
www: [
|
|
{
|
|
title: 'User',
|
|
docs: 'https://docs.rsshub.app/design.html#behance-yong-hu-zuo-pin',
|
|
source: ['/:user', '/:user/:types', '/gallery/:galleryid/:galleryname'],
|
|
target: (params, url, document) => {
|
|
let uid;
|
|
let type = '';
|
|
if (params.types && params.types.match('appreciated')) {
|
|
type = '/appreciated';
|
|
}
|
|
if (url.match(/gallery\/\d+/)) {
|
|
uid = document && document.querySelector('.e2e-project-avatar').childNodes[0].attributes[1].value.match(/behance.net\/(.*)/)[1];
|
|
} else {
|
|
uid = document && document.querySelector('html').innerHTML.match(/([^/]+)\/insights/)[1];
|
|
}
|
|
|
|
return `/behance/${uid}${type}`;
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|