Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Subject: Read Heise newsticker: hackers wanted
Date: Sat, 09 Feb 2002 21:16:07 +0100	[thread overview]
Message-ID: <vafaduixvg8.fsf@INBOX.auto.gnus.tok.lucy.cs.uni-dortmund.de> (raw)

Thanks to ShengHuo's nnrss-content-function, it was fairly easy to
cons up the following which kinda sorta lets you read the Heise
newsticker via nnrss.  I'm interested in people who want to hack on
this.

(There is some flickering going on, and I would like to know why
there are \201 characters.)

(defun kai-nnrss-content-function (entry group article)
  (let ((num (nth 0 entry))
	(timestamp (nth 1 entry))
	(url (nth 2 entry)))
    (when (string-match "[hH]eise" group)
      (message "Retrieving %s" url)
      (let ((buf (url-retrieve-synchronously url))
	    (w3-display-same-buffer t)
	    parse)
	(save-excursion
	  (set-buffer buf)
	  (goto-char (point-min))
	  (delete-region (point)
			 (search-forward "<HEISETEXT>"))
	  (insert "<html><body>")
	  (delete-region (search-forward "</HEISETEXT>")
			 (point-max))
	  (insert "</boxy></html>")
	  (setq parse (w3-parse-buffer (current-buffer)))
	  (erase-buffer)
	  (w3-draw-tree parse))
	(insert-buffer buf)))))
(setq nnrss-content-function 'kai-nnrss-content-function)

As you can easily see, the method to grab the actual text of the news
item is very simple-minded.  As you can also see, I don't have the
foggiest notion how to use the URL and W3 packages.

Does anyone have something similar for Tagesschau?

kai
-- 
~/.signature is: umop 3p!sdn    (Frank Nobis)



             reply	other threads:[~2002-02-09 20:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-09 20:16 Kai Großjohann [this message]
2002-02-11  9:14 ` Kai Großjohann
2002-02-11  9:34   ` Kai Großjohann
2002-02-11 17:46     ` Raymond Scholz
2002-02-12  9:01       ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vafaduixvg8.fsf@INBOX.auto.gnus.tok.lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).