Provide extra protocols to make self-hosting RSS readers work with elfeed, including Fever, NewsBlur, Nextcloud/ownCloud News, Tiny Tiny RSS and even more.
;; Install through package manager
M-x package-install <ENTER>
elfeed-protocol <ENTER>
Setup elfeed-protocol, then switch to search view and and press G to update entries:
;; curl recommend
(setq elfeed-use-curl t)
(elfeed-set-timeout 36000)
(setq elfeed-curl-extra-arguments '("--insecure")) ;necessary for https without a trust certificate
;; setup extra protocol feeds
(setq elfeed-feeds '(
;; format 1
"owncloud+https://user:pass@myhost.com"
;; format 2, for password with special characters
("owncloud+https://user@myhost.com"
:password "password/with|special@characters:")
;; format 3, for password in file
("owncloud+https://user@myhost.com"
:password-file "~/.password")
;; format 4, for password in .authinfo, ensure (auth-source-search :host "myhost.com" :port "443" :user "user4") exists
("owncloud+https://user@myhost.com"
:use-authinfo t)
;; format 5, for password in gnome-keyring
("owncloud+https://user@myhost.com"
:password (shell-command-to-string "secret-tool lookup attribute value"))
;; format 6, for password in pass(1), using password-store.el
("owncloud+https://user@myhost.com"
:password (password-store-get "owncloud/app-pass"))
;; use autotags
("owncloud+https://user@myhost.com"
:password "password"
:autotags '(("example.com" comic)))))
;; enable elfeed-protocol
(elfeed-protocol-enable)
To make elfeed-org
tag rules works together with elfeed-protocol
, just add a
after advice for elfeed
:
(defadvice elfeed (after configure-elfeed-feeds activate)
"Make elfeed-org autotags rules works with elfeed-protocol."
(setq elfeed-protocol-tags elfeed-feeds)
(setq elfeed-feeds (list
(list "owncloud+https://user@myhost.com"
:password '(password-store-get "owncloud/app-pass")
:autotags elfeed-protocol-tags))))
- Fetch articles by the entry ID
- Support sync unread, starred(saved) tags, the starred tag name
defined in
elfeed-protocol-fever-star-tag
which default value isstar
- Support multiple fetching methods:
elfeed-protocol-fever-update-older
elfeed-protocol-fever-update-star
NOTE: User must provide Fever API URL manually. For Tiny Tiny RSS
Fever plugin, it is https://your-ttrss-server/plugins/fever/
.
Example:
(setq elfeed-feeds (list
(list "fever+https://user@myhost.com"
:api-url "https://myhost.com/plugins/fever/"
:password "password/with|special@characters:"
:autotags '(("example.com" comic)))))
- Fetch articles from recent pages
- Fetch articles for special feed
- Fetch tags in remote
- Support sync unread, starred(saved) tags, the starred tag name
defined in
elfeed-protocol-ttrss-star-tag
which default value isstar
NOTE: A file for storing session cookies has to be specified via
elfeed-curl-extra-arguments
like in the following example.
Example:
(setq elfeed-protocol-newsblur-maxpages 20)
(setq elfeed-curl-extra-arguments '("--cookie-jar" "/tmp/newsblur-cookie"
"--cookie" "/tmp/newsblur-cookie"))
(setq elfeed-feeds (list
"newsblur+https://user1:pass1@newsblur.com"
(list "newsblur+https://user2@newsblur.com"
:password "password/with|special@characters:"
:autotags '(("example.com" comic)))))
- Fetch articles with the modified time by default
- Fetch articles for special feed
- Support sync unread and starred tags, the starred tag name defined
in
elfeed-protocol-owncloud-star-tag
which default value isstar
. For example, if user addstar
tag to one article, the star stat will be sync to server, too - Support multiple fetching methods:
elfeed-protocol-owncloud-update-since-timestamp
elfeed-protocol-owncloud-update-since-id
elfeed-protocol-owncloud-update-older
Example:
(setq elfeed-protocol-owncloud-maxsize 1000)
(setq elfeed-protocol-owncloud-update-with-modified-time t)
(setq elfeed-feeds (list
"owncloud+https://user1:pass1@myhost.com"
(list "owncloud+https://user2@myhost.com"
:password "password/with|special@characters:"
:autotags '(("example.com" comic)))))
- Fetch articles by the entry ID
- Fetch articles for special feed
- Support sync unread, starred and published tags, the starred tag
name defined in
elfeed-protocol-ttrss-star-tag
which default value isstar
, and the published tag name defined inelfeed-protocol-ttrss-publish-tag
which default value ispublish
- Support multiple fetching methods:
elfeed-protocol-ttrss-update-older
elfeed-protocol-ttrss-update-star
NOTE: For Tiny Tiny RSS only allow fetch Maximize 200 entries each
time, so if your own much more starred entries, just run
elfeed-protocol-ttrss-update-star
manually to fetch them all
Example:
(setq elfeed-protocol-ttrss-maxsize 200) ; bigger than 200 is invalid
(setq elfeed-feeds (list
"ttrss+https://user1:pass1@myhost.com"
(list "ttrss+https://user2@myhost.com"
:password "password/with|special@characters:"
:autotags '(("example.com" comic)))))
Install cask
system package firstly, and then run following commands
make init
make test
make checkdoc
make elint
make package-lint
-
Fetch docker image and run it
docker pull nextcloud docker run --rm -p 80:80 nextcloud
-
Open http://127.0.0.1 in browser to setup Nextcloud
- Create admin user and select database to SQLite, then press "Finish setup"
- Press left top popup menu and select "+Apps", select "Multimedia", and enable the "News" app
- Press left top popup menu and switch to "News" app, then subscribe some feeds
-
Setup
elfeed-protocol
(setq elfeed-feeds '("owncloud+http://<admin>:<password>@localhost"))
-
Fetch related docker images and run them
docker pull clue/ttrss docker pull nornagon/postgres docker run --rm -d --name ttrssdb nornagon/postgres docker run --rm --link ttrssdb:db -p 80:80 clue/ttrss
-
Open http://127.0.0.1 in browser to setup Tiny Tiny RSS
- Use the default
admin:password
authorization info to login - Enter "Preferences" page to enable "Enable API access" and save configuration
- Use the default
-
Setup
elfeed-protocol
(setq elfeed-feeds '("ttrss+http://admin:password@localhost"))
Please collect logs in buffer *elfeed-log*
with the following config
before reporting issues:
(setq elfeed-log-level 'debug)
(toggle-debug-on-error)
;; for more logs
(setq elfeed-protocol-log-trace t)
(setq elfeed-protocol-fever-maxsize 10)
(setq elfeed-protocol-newsblur-maxpages 1)
(setq elfeed-protocol-owncloud-maxsize 10)
(setq elfeed-protocol-ttrss-maxsize 10)
-
when I run elfeed-update I get the error:
elfeed-feeds malformed, bad entry
Don't forget to enable elfeed-protocol at first:
(elfeed-protocol-enable)
-
Not working if my password contains special characters like
@#$/:
.Use format 2 instead in previous example for complex password:
;; format 2, for password with special characters ("owncloud+https://user@myhost.com" :password "password/with|special@characters:")
-
Sometimes emacs may be blocked if the parsing downloaded articles is too large, for example >50MB.
This is caused by the known emacs bug that CPU will be in high usage if a text line is too long. There three methods to workaround this:
-
Method 1, limit the download size, for example:
(setq elfeed-protocol-owncloud-maxsize 1000)
-
Method 2, for ownCloud, just update articles since special entry ID instead the modified time, this could run multiple times to keep up to date to avoid download too large entries once time
M-x elfeed-protocol-owncloud-update-since-id
-
Method 3, some protocol provide update method to reset the last modified time to skip some data, for example:
M-x elfeed-protocol-owncloud-update-since-timestamp
-
Released under the terms of the GNU GPLv3+.