forked from DIYgod/RSSHub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #585 from DIYgod/master
[pull] master from diygod:master
- Loading branch information
Showing
20 changed files
with
327 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const buildData = require('@/utils/common-config'); | ||
|
||
module.exports = async (ctx) => { | ||
const link = 'http://www.aiea.org/0504'; | ||
const period = ctx.params.period ?? ''; | ||
|
||
let nth_child = 'n'; | ||
switch (period) { | ||
case 'upcoming': | ||
nth_child = '1'; | ||
break; | ||
|
||
case 'past': | ||
nth_child = '2'; | ||
break; | ||
|
||
case 'both': | ||
nth_child = 'n'; | ||
break; | ||
|
||
default: | ||
break; | ||
} | ||
|
||
ctx.state.data = await buildData({ | ||
link, | ||
url: link, | ||
title: `%title%`, | ||
params: { | ||
title: 'AIEA Seminars', | ||
}, | ||
item: { | ||
item: `.seminar-contents .seminar-partWrap:nth-child(${nth_child}) > .seminar-list`, | ||
title: `$('.seminar-list-title > span').text()`, | ||
link: `$('a[href^="/0504"]').attr('href')`, | ||
description: `$('.seminar-list .txt > .title').text()`, | ||
}, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
'/seminars/:period': ['zxx-457'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
'aiea.org': { | ||
_name: 'Asian Innovation and Entrepreneurship Association', | ||
www: [ | ||
{ | ||
title: 'Seminar Series', | ||
docs: 'https://docs.rsshub.app/study.html#AIEA-Seminar-Series', | ||
source: ['/0504', '/'], | ||
target: '/aiea/seminars/upcoming', | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = function (router) { | ||
return router.get('/seminars/:period', require('.')); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d17035b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
rsshub-master – ./
rsshub-master-git-master-auto-bot-ty.vercel.app
rsshub-master.vercel.app
rsshub-master-auto-bot-ty.vercel.app