跳至內容

網絡訂閱源

出自 Arch Linux 中文维基


一些網站提供了網絡訂閱源(Web feed)新聞訂閱源 ,一般以 RSS, [Atom],或 [JSON] 格式提供。 新聞聚合器可以讀取這些訂閱源的內容,檢查這些內容是否有更新,從而讓用戶訂閱博客或播客內容。

獲取網絡訂閱源

[編輯 | 編輯原始碼]

即使一個網站並沒有聲明其擁有網絡訂閱源,也有可能提供這項服務。您可以嘗試在網址後添加/feed/rss來查看網站是否支持。如果這樣還是不行的話,可以使用Ctrl+u查看網頁原始碼,然後使用Ctrl+f搜索<link rel="alternate" type="application/atom+xml"<link rel="alternate" type="application/rss+xml"。火狐瀏覽器插件Awesome RSS會在訪問支持網絡訂閱源的網站時於地址欄添加一個可以點擊的圖標。

如果網站不支持網頁訂閱源,可以試試這個應用RSS-Bridge.

以下章節描述了在特定網站上如何獲得訂閱連結。

Arch Linux

[編輯 | 編輯原始碼]

GitHub

[編輯 | 編輯原始碼]

對提交commit訂閱使用如下連結語法:

https://github.com/user/repo/commits/branch/path/to/subdir.atom

Reddit

[編輯 | 編輯原始碼]

Reddit provides feeds for subreddits, posts and users: simply add .rss to the URL. If you have a Reddit account, you can find your personal feeds in the preferences.

Reddit提供RSS訂閱連結。對於子版塊、帖子和用戶,僅需要在網址後添加.rss即可。如果你已經擁有Reddit帳戶,你可以在偏好中找到自己的訂閱連結。

YouTube

[編輯 | 編輯原始碼]

訂閱一個頻道:

https://www.youtube.com/feeds/videos.xml?channel_id=UCxxxxxxxxxxxxxxxxxxxxxx

如果這個頻道使用以/user/username結尾的傳統網址,你也可以使用:

https://www.youtube.com/feeds/videos.xml?user=username

你可以從Google Takeout上下載你的訂閱連結,然後使用這個項目將其轉換為OMPL格式。