/usr/share/emacs/site-lisp/w3m/shimbun/sb-perlentaucher-de.el is in w3m-el 1.4.483+0.20120614-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | ;;; sb-perlentaucher-de.el --- perlentaucher.de shimbun backend
;; Copyright (C) 2008, 2009, 2010 David Engster
;; Author: David Engster <dengste@eml.cc>
;; Keywords: news
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program; see the file COPYING. If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;;; Code:
(require 'shimbun)
(require 'sb-rss)
(luna-define-class shimbun-perlentaucher-de (shimbun-rss) ())
(defvar shimbun-perlentaucher-de-url "http://rss.perlentaucher.de")
(defvar shimbun-perlentaucher-de-groups '("aktuell"))
(defvar shimbun-perlentaucher-de-from-address "invalid@perlentaucher.de")
(defvar shimbun-perlentaucher-de-content-start "<div class=\"col_middle\">")
(defvar shimbun-perlentaucher-de-content-end "<div class=\"col_right\">")
(defvar shimbun-perlentaucher-de-url-regexp
"rss.feedsportal.com/.*/\\([^/]+\\)/story.*\\.htm")
(defvar shimbun-perlentaucher-de-x-face-alist
'(("default" . "\
Face: iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAgMAAABGuH3ZAAAADFBMVEUAern/+/D///8aGhp
47OwqAAAALklEQVQI12P4////H4aroaExDBcYGGSgBKsDkJCaACSylqAQYDGwLFwxWC/IFAD6jBr
V/YdWgAAAAABJRU5ErkJggg==")))
(luna-define-method shimbun-index-url ((shimbun shimbun-perlentaucher-de))
shimbun-perlentaucher-de-url)
(luna-define-method shimbun-clear-contents :before ((shimbun
shimbun-perlentaucher-de)
header)
(shimbun-remove-tags "<div class=\"tools\">" "Merkzettel</a></li></ul>")
(shimbun-remove-tags "\\(div\\) class=\"box2 jumper\">" t)
(shimbun-remove-tags "\\(a\\) href=\"#top\">" t))
(luna-define-method shimbun-rss-build-message-id ((shimbun
shimbun-perlentaucher-de)
url date)
(unless (string-match shimbun-perlentaucher-de-url-regexp url)
(error "Cannot find message-id base"))
(concat "<" (match-string 1 url)
"." (shimbun-current-group-internal shimbun) "@perlentaucher.de>"))
(provide 'sb-perlentaucher-de)
;;; sb-perlentaucher-de.el ends here
|