Gnus development mailing list
 help / color / mirror / Atom feed
* Read Heise newsticker: hackers wanted
@ 2002-02-09 20:16 Kai Großjohann
  2002-02-11  9:14 ` Kai Großjohann
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Großjohann @ 2002-02-09 20:16 UTC (permalink / 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)



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-02-12  9:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-09 20:16 Read Heise newsticker: hackers wanted Kai Großjohann
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

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).