chore: update en doc & add author and time info for nautil.us (#3235)
This commit is contained in:
@@ -4,6 +4,12 @@ pageClass: routes
|
||||
|
||||
# Multimedia
|
||||
|
||||
## 60-Second Science - Scientific American
|
||||
|
||||
### Transcript
|
||||
|
||||
<Route author="emdoe" example="/60s-science/transcript" path="/60s-science/transcript"/>
|
||||
|
||||
## 99% Invisible
|
||||
|
||||
### Transcript
|
||||
|
||||
@@ -17,6 +17,22 @@ Supported sub-sites:
|
||||
|
||||
</RouteEn>
|
||||
|
||||
## AEON
|
||||
|
||||
<Route author="emdoe" example="/aeon/ideas" path="/aeon/:category" :paramsDesc="['Category']"></Route>
|
||||
|
||||
Subscribe it by channel:
|
||||
| Ideas | Essays | Videos |
|
||||
| ----- | ------ | ------ |
|
||||
| ideas | essays | videos |
|
||||
|
||||
Subscribe it by subject or topic :
|
||||
| Culture | Philosophy | Psychology | Society | Science |
|
||||
| ------- | ---------- | ---------- | ------- | ------- |
|
||||
| culture | philosophy | psychology | society | science |
|
||||
|
||||
Compared to the official one, the RSS feed generates by RSSHub not only has more fine-grained options, but eliminates pull quotes which can't be easily distinguished from other paragraphs by any RSS reader but purely disrupts the reading flow. Besides that, this feed also provides users a bio of the author in the end of the article.
|
||||
|
||||
## iDownloadBlog
|
||||
|
||||
### iDownloadBlog
|
||||
@@ -27,6 +43,14 @@ Provides a better reading experience (full text articles) over the official one.
|
||||
|
||||
</RouteEn>
|
||||
|
||||
## Nautilus
|
||||
|
||||
### Topics
|
||||
|
||||
<Route author="emdoe" example="/nautilus/topic/Art" path="/nautilus/topic/:tid" :paramsDesc="['topic']"/>
|
||||
|
||||
This route provides a flexible plan with full text content to subscribe specific topic(s) on the Nautilus. Please visit [nautil.us](http://nautil.us) and click `Topics` to acquire whole topic list.
|
||||
|
||||
## The Verge
|
||||
|
||||
<RouteEn author="HenryQW" example="/verge" path="/verge">
|
||||
|
||||
@@ -479,6 +479,12 @@ pageClass: routes
|
||||
|
||||
<Route author="crispgm" example="/nogizaka46/news" path="/nogizaka46/news" />
|
||||
|
||||
## Nautilus
|
||||
|
||||
### 话题
|
||||
|
||||
<Route author="emdoe" example="/nautilus/topic/Art" path="/nautilus/topic/:tid" :paramsDesc="['话题 id, 可在页面上方 TOPICS 栏目处找到']"/>
|
||||
|
||||
## 派代
|
||||
|
||||
### 首页
|
||||
|
||||
@@ -10,12 +10,6 @@ pageClass: routes
|
||||
|
||||
<Route author="HenryQW" example="/allpoetry/newest" path="/allpoetry/:order?" :paramsDesc="['排序方式, `best` 或 `newest`, 缺省 `best`']"/>
|
||||
|
||||
## Nautilus
|
||||
|
||||
### 话题
|
||||
|
||||
<Route author="emdoe" example="/nautilus/topic/Art" path="/nautilus/topic/:tid" :paramsDesc="['话题 id, 可在页面上方 TOPICS 栏目处找到']"/>
|
||||
|
||||
## UU 看书
|
||||
|
||||
### 小说更新
|
||||
|
||||
@@ -22,12 +22,16 @@ module.exports = async (ctx) => {
|
||||
const capture = cheerio.load(res.data);
|
||||
capture('div.reco').remove();
|
||||
const banner = capture('div.banner').html();
|
||||
const textWithTime = capture('div.byline').text();
|
||||
const author = capture('div.byline > span:nth-child(2)').text();
|
||||
const contents = banner + capture('div.page-content').html();
|
||||
const single = {
|
||||
title,
|
||||
author: author,
|
||||
description: contents,
|
||||
link: address,
|
||||
guid: address,
|
||||
pubDate: new Date(textWithTime).toUTCString(),
|
||||
};
|
||||
ctx.cache.set(address, JSON.stringify(single));
|
||||
return Promise.resolve(single);
|
||||
|
||||
Reference in New Issue
Block a user