From 8fb4095824b18363ab16bade70e95c655c6dc99b Mon Sep 17 00:00:00 2001 From: Enoch Ma Date: Sat, 12 Oct 2019 18:46:09 +0800 Subject: [PATCH] chore: update en doc & add author and time info for nautil.us (#3235) --- docs/en/multimedia.md | 6 ++++++ docs/en/new-media.md | 24 ++++++++++++++++++++++++ docs/new-media.md | 6 ++++++ docs/reading.md | 6 ------ lib/routes/nautilus/topics.js | 4 ++++ 5 files changed, 40 insertions(+), 6 deletions(-) diff --git a/docs/en/multimedia.md b/docs/en/multimedia.md index 0699c6d4e..61fe12ef5 100644 --- a/docs/en/multimedia.md +++ b/docs/en/multimedia.md @@ -4,6 +4,12 @@ pageClass: routes # Multimedia +## 60-Second Science - Scientific American + +### Transcript + + + ## 99% Invisible ### Transcript diff --git a/docs/en/new-media.md b/docs/en/new-media.md index 5444694c2..cc0a2caa8 100644 --- a/docs/en/new-media.md +++ b/docs/en/new-media.md @@ -17,6 +17,22 @@ Supported sub-sites: +## AEON + + + +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. +## Nautilus + +### Topics + + + +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 diff --git a/docs/new-media.md b/docs/new-media.md index 166b8e606..d8d954eec 100644 --- a/docs/new-media.md +++ b/docs/new-media.md @@ -479,6 +479,12 @@ pageClass: routes +## Nautilus + +### 话题 + + + ## 派代 ### 首页 diff --git a/docs/reading.md b/docs/reading.md index 89f2a7b19..6b38aeb78 100644 --- a/docs/reading.md +++ b/docs/reading.md @@ -10,12 +10,6 @@ pageClass: routes -## Nautilus - -### 话题 - - - ## UU 看书 ### 小说更新 diff --git a/lib/routes/nautilus/topics.js b/lib/routes/nautilus/topics.js index 8046eda3a..fcdeecd6f 100644 --- a/lib/routes/nautilus/topics.js +++ b/lib/routes/nautilus/topics.js @@ -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);