Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.81 KB

memacs_rss.org

File metadata and controls

55 lines (39 loc) · 1.81 KB

## Time-stamp: <2017-12-26 16:23:52 vk> ## This file is best viewed with GNU Emacs Org-mode: http://orgmode.org/

memacs-rss

RSS is a widely used standard to distribute updates and content over the internet.

Options

  • -u, --url, url to an rss file
  • -f, --file, path to an rss file

Dependencies

This module uses the Python library feedparser which might need to be to be installed before using this module.

When using Ubuntu GNU/Linux or any other Debian GNU/Linux based distribution you can install the package by invoking «apt-get install python-feedparser» as the root user.

Automatic appending

the <guid> property of an <item> in rss becomes following:

:PROPERTIES:
...
:ID: <id>
...
:END:

At beginning, if an outputfile exists this memacs module looks for existing id’s. Only new items are then appended.

Example Invocation

rss from URL

memacs_rss.py -u "http://example.com/file.rss" -o "/home/user/orgmode/memacs/rss_foo.org_archive"

rss from file

memacs_rss.py -f "/path/to/file.rss" -o "/home/user/orgmode/memacs/rss_foo.org_archive"

example with twitter (replace <USERNAME> with twitter-name):

memacs_rss.py -u "https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=<USERNAME>" -o "/home/user/orgmode/memacs/twitter-<USERNAME>.org_archive"

Example Orgmode entries

** [[http://www.wikipedia.org/][link]]: Example entry    :tag:
  Here is some text containing an interesting description.
  :PROPERTIES:
  :LINK:    [[http://www.wikipedia.org/]]
  :CREATED: <2009-09-06 Sun 18:45>
  :ID:      unique string per item
  :SUMMARY: Here is some text containing an interesting description.
  :ID:      unique string per item
  :END: