From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43022 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Read Heise newsticker: hackers wanted Date: Sat, 09 Feb 2002 21:16:07 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035178180 15339 80.91.224.250 (21 Oct 2002 05:29:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:29:40 +0000 (UTC) Return-Path: Original-Received: (qmail 16339 invoked from network); 9 Feb 2002 20:19:18 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 9 Feb 2002 20:19:18 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16Zdvk-000292-00; Sat, 09 Feb 2002 14:17:04 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 09 Feb 2002 14:16:54 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id OAA22374 for ; Sat, 9 Feb 2002 14:16:42 -0600 (CST) Original-Received: (qmail 16310 invoked by alias); 9 Feb 2002 20:16:40 -0000 Original-Received: (qmail 16305 invoked from network); 9 Feb 2002 20:16:40 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 9 Feb 2002 20:16:40 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g19KGCb27299 for ; Sat, 9 Feb 2002 21:16:12 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id VAA27412; Sat, 9 Feb 2002 21:16:07 +0100 (MET) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 91AD63ADC6; Sat, 9 Feb 2002 21:16:07 +0100 (CET) Original-To: ding@gnus.org Original-Lines: 41 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43022 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43022 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 "")) (insert "") (delete-region (search-forward "") (point-max)) (insert "") (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) From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43033 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Read Heise newsticker: hackers wanted Date: Mon, 11 Feb 2002 10:14:17 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035178190 15397 80.91.224.250 (21 Oct 2002 05:29:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:29:50 +0000 (UTC) Return-Path: Original-Received: (qmail 22365 invoked from network); 11 Feb 2002 09:16:27 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 11 Feb 2002 09:16:27 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16aCYG-0007zn-00; Mon, 11 Feb 2002 03:15:08 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 11 Feb 2002 03:15:06 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id DAA27797 for ; Mon, 11 Feb 2002 03:14:54 -0600 (CST) Original-Received: (qmail 21157 invoked by alias); 11 Feb 2002 09:14:51 -0000 Original-Received: (qmail 21148 invoked from network); 11 Feb 2002 09:14:50 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 11 Feb 2002 09:14:50 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g1B9ENb05542 for ; Mon, 11 Feb 2002 10:14:23 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id KAA12996; Mon, 11 Feb 2002 10:14:18 +0100 (MET) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id D232D3ADC6; Mon, 11 Feb 2002 10:14:17 +0100 (CET) Original-To: ding@gnus.org In-Reply-To: (Kai.Grossjohann@cs.uni-dortmund.de's message of "Sat, 09 Feb 2002 21:16:07 +0100") Original-Lines: 54 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43033 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43033 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Here is a slightly improved version which does not display "\201=E4" instead of "=E4" and so on. Also, you can use it to read the newsticker of the Tagesschau, a German public TV news show. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline (require 'nnrss) (require 'w3) (add-to-list 'nnrss-group-alist '("Tagesschau" "http://www.tagesschau.de/newsticker.rdf" "Nachrichten der Tagesschau.")) (defun kai-nnrss-content-function (entry group article) (let* ((num (nth 0 entry)) (timestamp (nth 1 entry)) (url (nth 2 entry)) (buf (url-retrieve-synchronously url)) (w3-display-same-buffer t) (w3-explicit-coding-system 'iso-8859-1) (w3-delay-image-loads t) parse pre-search post-search delete) (cond ((string-match "[hH]eise" group) (setq pre-search "" post-search "")) ((string-match "[tT]agesschau" group) (setq pre-search "class=\"content\">\n" post-search ""))) (save-excursion (set-buffer buf) (goto-char (point-min)) (delete-region (point) (search-forward pre-search)) (insert "\n" "\n" "\n") (delete-region (search-forward post-search) (point-max)) (insert "\n\n") (setq parse (w3-parse-buffer buf))) (kill-buffer buf) (let ((b (point))) (w3-draw-tree parse) (encode-coding-region b (point-max) 'iso-latin-1)))) (setq nnrss-content-function 'kai-nnrss-content-function) --=-=-= Content-Disposition: inline But it's still quite hair-raising: first of all, regexp searching does not strike me as the right way to find the relevant parts of the page, and secondly, the explicit and unconditional re-encoding of the W3 tree to Latin-1 smells really bad. kai -- ~/.signature is: umop 3p!sdn (Frank Nobis) --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43035 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Read Heise newsticker: hackers wanted Date: Mon, 11 Feb 2002 10:34:16 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035178192 15406 80.91.224.250 (21 Oct 2002 05:29:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:29:52 +0000 (UTC) Return-Path: Original-Received: (qmail 6587 invoked from network); 11 Feb 2002 09:35:26 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 11 Feb 2002 09:35:26 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16aCrb-0008Fj-00; Mon, 11 Feb 2002 03:35:07 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 11 Feb 2002 03:35:05 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id DAA28008 for ; Mon, 11 Feb 2002 03:34:54 -0600 (CST) Original-Received: (qmail 6227 invoked by alias); 11 Feb 2002 09:34:50 -0000 Original-Received: (qmail 6213 invoked from network); 11 Feb 2002 09:34:49 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 11 Feb 2002 09:34:49 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g1B9YMb06028 for ; Mon, 11 Feb 2002 10:34:22 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id KAA13323; Mon, 11 Feb 2002 10:34:17 +0100 (MET) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id F2F113ADC6; Mon, 11 Feb 2002 10:34:16 +0100 (CET) Original-To: ding@gnus.org In-Reply-To: (Kai.Grossjohann@cs.uni-dortmund.de's message of "Mon, 11 Feb 2002 10:14:17 +0100") Original-Lines: 12 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43035 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43035 Kai.Grossjohann@cs.uni-dortmund.de (Kai Gro=DFjohann) writes: > Here is a slightly improved version which does not display "\201=E4" > instead of "=E4" and so on. Also, you can use it to read the > newsticker of the Tagesschau, a German public TV news show. Do you think it makes sense to incorporate this into Gnus in some way? (It needs to be polished up before that.) kai --=20 ~/.signature is: umop 3p!sdn (Frank Nobis) From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43037 Path: main.gmane.org!not-for-mail From: Raymond Scholz Newsgroups: gmane.emacs.gnus.general Subject: Re: Read Heise newsticker: hackers wanted Date: Mon, 11 Feb 2002 18:46:20 +0100 Organization: =?UTF-8?Q?/=CB=8C=C9=94=CB=90=C9=A1=C9=99na=C9=AA=CB=88ze=C9=AA=CA=83n/?= Sender: owner-ding@hpc.uh.edu Message-ID: References: Reply-To: Raymond Scholz NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035178193 15408 80.91.224.250 (21 Oct 2002 05:29:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:29:53 +0000 (UTC) Return-Path: Original-Received: (qmail 4173 invoked from network); 11 Feb 2002 18:04:09 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 11 Feb 2002 18:04:09 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16aKmk-0001dZ-00; Mon, 11 Feb 2002 12:02:38 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 11 Feb 2002 12:02:37 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id MAA29485 for ; Mon, 11 Feb 2002 12:02:23 -0600 (CST) Original-Received: (qmail 4143 invoked by alias); 11 Feb 2002 18:02:15 -0000 Original-Received: (qmail 4138 invoked from network); 11 Feb 2002 18:02:15 -0000 Original-Received: from ingebrigtsen.no (HELO quimby2.netfonds.no) (195.204.10.66) by gnus.org with SMTP; 11 Feb 2002 18:02:15 -0000 Original-Received: from news by quimby2.netfonds.no with local (Exim 3.12 #1 (Debian)) id 16aKw8-0005A7-00 for ; Mon, 11 Feb 2002 19:12:20 +0100 Original-To: ding@gnus.org Original-Path: fly.verified.de!not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 21 Original-NNTP-Posting-Host: dialin-212-144-128-233.arcor-ip.net Original-X-Trace: quimby2.netfonds.no 1013451140 19839 212.144.128.233 (11 Feb 2002 18:12:20 GMT) Original-X-Complaints-To: usenet@quimby2.netfonds.no Original-NNTP-Posting-Date: 11 Feb 2002 18:12:20 GMT Mail-Copies-To: nobody X-Now-Playing: Nothing X-Face: ]O)gWYBDa6]mUo+jd;T+SS:"a9;q430I61MJBsu=]#J@'s0VWK;5#tHP;wj3tQf<522A0>r Wv|{j Do you think it makes sense to incorporate this into Gnus in some > way? (It needs to be polished up before that.) Hm, what about the idea of separating moving targets like those rss functions, nnslashdot, nnwarchive etc. from the main Gnus distribution? It'll be helpful for users that don't want to upgrade to Gnus development versions just for the sake of reading those news services. But I've no good idea how to implement this. Should there be a subscription service (mailing list or some "Gnus news channel" within Gnus itself)? What kind of information should be transferred (plain Elisp files or some meta format to be defined)? Cheers, Ray -- It's clear that whoever set up the font colorings for most programming modes has seen too many Peter Max posters, or did more acid than I did in the 60's. (Charles R. Martin in gnu.emacs.help) From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43047 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Read Heise newsticker: hackers wanted Date: Tue, 12 Feb 2002 10:01:30 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035178203 15510 80.91.224.250 (21 Oct 2002 05:30:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:30:03 +0000 (UTC) Return-Path: Original-Received: (qmail 24593 invoked from network); 12 Feb 2002 09:02:47 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 12 Feb 2002 09:02:47 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16aYpS-0005Ar-00; Tue, 12 Feb 2002 03:02:22 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 12 Feb 2002 03:02:21 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id DAA02675 for ; Tue, 12 Feb 2002 03:02:10 -0600 (CST) Original-Received: (qmail 24043 invoked by alias); 12 Feb 2002 09:02:06 -0000 Original-Received: (qmail 24033 invoked from network); 12 Feb 2002 09:02:05 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 12 Feb 2002 09:02:05 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g1C91ab10224 for ; Tue, 12 Feb 2002 10:01:36 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id KAA27905; Tue, 12 Feb 2002 10:01:31 +0100 (MET) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id F0BC83AF6D; Tue, 12 Feb 2002 10:01:30 +0100 (CET) Original-To: ding@gnus.org In-Reply-To: (Raymond Scholz's message of "Mon, 11 Feb 2002 18:46:20 +0100") Original-Lines: 30 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43047 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43047 Raymond Scholz writes: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > >> Do you think it makes sense to incorporate this into Gnus in some >> way? (It needs to be polished up before that.) > > Hm, what about the idea of separating moving targets like those rss > functions, nnslashdot, nnwarchive etc. from the main Gnus > distribution? It'll be helpful for users that don't want to upgrade > to Gnus development versions just for the sake of reading those news > services. That is a good idea. But it seems nobody has stepped forward to do the work. > But I've no good idea how to implement this. Should there be a > subscription service (mailing list or some "Gnus news channel" within > Gnus itself)? What kind of information should be transferred (plain > Elisp files or some meta format to be defined)? It might be better to factor out the parsing code and to distribute it. Maybe the parsing is done via regexes, then regexes could be factored out. Or maybe the parsing is done via XPath, then XPath queries could be factored out. Or a Lisp function, for full generality. kai --=20 ~/.signature is: umop 3p!sdn (Frank Nobis)