How to read content of Usenet newsgroups? I need VB example.

  • Thread starter Thread starter Martin Ho
  • Start date Start date
M

Martin Ho

Is there any example or could someone please help me out?
I need to be able to read the content of one particular newsgroup and
save it into mysql database.
Is there any source code available or could someone point me up?
Please let me know.
Martin Ho
 
Martin,

I have done this with the use of the Mabry Software News/Net Component.

I can't seem to find the project I wrote for this rignt now but essentially
what you do is:

1. Open a connection to the server
2. Retrieve Group information for the group you are wanting to download.
This will provide you with the first and last article numbers.
3. Retrieve each article and save the article to the database.

-Sam Matzen


Martin Ho said:
Is there any example or could someone please help me out?
I need to be able to read the content of one particular newsgroup and
save it into mysql database.
Is there any source code available or could someone point me up?
Please let me know.
Martin Ho
 
Hi Martin,

With the help of our friendly Swiss friend I saw that I had connected this
message to the wrong question.

This is distributed by Kudzu

\\\
Imports Indy.Sockets.IndyNNTP

Dim LHTTP as new HTTP
Dim LMsg as new Message

with LMsg
From.Address = "(e-mail address removed)"
Subject = "Hello"
Newsgroups.Add("microsoft.public.dotnet.languages.vb")
Body.Text = "This is my message"
end with

LHTTP.Host = "msnews.microsoft.com"
LHTTP.Connect
try
LHTTP.Post(Message)
catch
LHTTP.Disconnect
end try

http://www.indyproject.org/indy.html
///

I hope this helps a little bit?

Cor
 
* (e-mail address removed)-spam.invalid (Martin Ho) scripsit:
I need to be able to read the content of one particular newsgroup and
save it into mysql database.

<URL:http://workspaces.gotdotnet.com/nntpClient>

News/NNTP -- RFC 977
<URL:http://www.faqs.org/rfcs/rfc977.html>

Newsreader written in C#
<URL:http://sourceforge.net/projects/gon/>

Indy
<URL:http://www.indyproject.org/indy.html>

Commercial:

NNTP control in IP*Works! .Net Edition
<URL:http://www.nsoftware.com/download/>
 
Mabry is extremelly expensive.... uuufff
That is simply way over my budget.
Other programs refered here, weren't exactly some codes I could test
in vb.net.
Is there any other way guys?
Please let me know.
Martin
 
Martin,

You can write the HTTP interface and use raw sockets.

The RFC is publicly available at http://www.w3.org/Protocols/rfc1945/rfc1945

But I would expect it to take at least 60 hours to get the basics running.

-Sam Matzen


Martin Ho said:
Mabry is extremelly expensive.... uuufff
That is simply way over my budget.
Other programs refered here, weren't exactly some codes I could test
in vb.net.
Is there any other way guys?
Please let me know.
Martin
 
Other programs refered here, weren't exactly some codes I could test
in vb.net.

Did you look at Cor's example? It was very straight forward and easy to
understand/test in VB. Granted his example is for posting a message, but
it shows how to connect the NNTP client. You should be able to call the
appropriate methods to receive a post.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
Back
Top