Thread View: news.software.readers
5 messages
5 total messages
Started by Joe Moyle
Tue, 18 Jul 2000 00:00
NewsReader that can save bodies in plain text format?
Author: Joe Moyle
Date: Tue, 18 Jul 2000 00:00
Date: Tue, 18 Jul 2000 00:00
22 lines
1730 bytes
1730 bytes
I would like to find a newsreader that can save all of the bodies of
news messages to my local drive in a plain text format. I want to parse all
of the text of some auction/sales/trade newsgroups for a collectable card
game I play and then share card pricing information derived from the
newsgroups with the internet community. I'm a perl beginner but I have been
using it for parsing error logs and writing exception reports for a couple
of years. I thought could use perl to parse the text but I don't know the
first thing about getting that text from a news server. I thought that with
all of the newsreaders out there someone on this news group might be able to
point me in the right direction.
I'm using NT 4.0 on my home workstation. I've just installed Gravity
v2.3 Beta 4 to see if it will do what I want. I find that the . g file has
the information I want but when I open it with perl it only sees one line
and then exits the file. Any help would be appreciated.
--
Joe Moyle
JoeMoyle@Flashcom.Net
Re: NewsReader that can save bodies in plain text format?
Author: Joe Moyle
Date: Wed, 19 Jul 2000 00:00
Date: Wed, 19 Jul 2000 00:00
40 lines
2265 bytes
2265 bytes
Thank you all for answering my question. Last night after posting I experimented with Gravity some more and found that its Save As function worked perfectly for what I need. One of the replies to my original question pointed me in the right direction for automating this process with Gravity. -- Joe Moyle JoeMoyle@Flashcom.Net "Joe Moyle" <JoeMoyle@Flashcom.Net> wrote in message news:sna6kr1d1nk140@corp.supernews.com... > I would like to find a newsreader that can save all of the bodies of > news messages to my local drive in a plain text format. I want to parse all > of the text of some auction/sales/trade newsgroups for a collectable card > game I play and then share card pricing information derived from the > newsgroups with the internet community. I'm a perl beginner but I have been > using it for parsing error logs and writing exception reports for a couple > of years. I thought could use perl to parse the text but I don't know the > first thing about getting that text from a news server. I thought that with > all of the newsreaders out there someone on this news group might be able to > point me in the right direction. > I'm using NT 4.0 on my home workstation. I've just installed Gravity > v2.3 Beta 4 to see if it will do what I want. I find that the . g file has > the information I want but when I open it with perl it only sees one line > and then exits the file. Any help would be appreciated. > > -- > Joe Moyle > JoeMoyle@Flashcom.Net > >
Re: NewsReader that can save bodies in plain text format?
Author: Frank Slootweg
Date: Wed, 19 Jul 2000 00:00
Date: Wed, 19 Jul 2000 00:00
5 lines
784 bytes
784 bytes
Even for MS-Windows :-), there are Real Newsreaders (tm) like slrn and tin which can do what you want (for tin: http://www.tin.org).
Re: NewsReader that can save bodies in plain text format?
Author: Murray Peterson
Date: Wed, 19 Jul 2000 00:00
Date: Wed, 19 Jul 2000 00:00
42 lines
2632 bytes
2632 bytes
JoeMoyle@Flashcom.Net (Joe Moyle) wrote:
>I would like to find a newsreader that can save all of the bodies
>of news messages to my local drive in a plain text format. I want
>to parse all of the text of some auction/sales/trade newsgroups
>for a collectable card game I play and then share card pricing
>information derived from the newsgroups with the internet
>community. I'm a perl beginner but I have been using it for
>parsing error logs and writing exception reports for a couple of
>years. I thought could use perl to parse the text but I don't
>know the first thing about getting that text from a news server.
>I thought that with all of the newsreaders out there someone on
>this news group might be able to point me in the right direction.
>I'm using NT 4.0 on my home workstation. I've just installed
>Gravity v2.3 Beta 4 to see if it will do what I want. I find that
>the . g file has the information I want but when I open it with
>perl it only sees one line and then exits the file. Any help
>would be appreciated.
There are several ways we can go here:
1. Fix your Perl script (easiest solution):
Perl Question: Did you remember to set binmode on your
file descriptor?
2. I have written a complete newsreader written in Perl.
It's command line only, but it does deal with newsrc files and
has fairly complete filtering mechanisms. No support -- you would
have to take it as-is and modify it to suit yourself.
It's available from my web page (see my signature below).
3. Get a different newsreader that saves the files in a format
you can easily read from Perl.
I would recommend solution #1 as by far the easiest.
--
Murray Peterson
Email: murray_peterson@home.com (remove underscore)
URL: http://www.members.home.net/murraypeterson
Re: NewsReader that can save bodies in plain text format?
Author: Tom B.
Date: Thu, 20 Jul 2000 00:00
Date: Thu, 20 Jul 2000 00:00
34 lines
2012 bytes
2012 bytes
Joe Moyle wrote:
> I would like to find a newsreader that can save all of the bodies of
> news messages to my local drive in a plain text format
[snip]
> I've just installed Gravity
> v2.3 Beta 4 to see if it will do what I want. I find that the . g file has
> the information I want but when I open it with perl it only sees one line
> and then exits the file. Any help would be appreciated.
The .g file is a binary data file. Gravity can save or append to a
plain text file by doing a "file -> save as." You can automate this
by if you want. To save all articles to a single text file write a
rule something like this.
1. Conditions: Article marked as unread, or add any conditions you
want (you may want to add lines NOT > xxx to avoid grabbing a huge
post)
2. Apply to only one group unless you want to add more groups in the
file.
3. Actions: fetch body, append to "filename"
Note: I think Gravity saves the headers that are visible in the
display, so customize the article pane to show the headers you want
included in text. Run the rule manually or automatic to incoming.
You will need a separate rule for each text file.
--
Tom B. Naples FL ** Gravity Page **
http://www.naplesfl.net/~tbates/gravity/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads