By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,370 Members | 1,534 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,370 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 20 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
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" <ja*******@gmail-dot-com.no-spam.invalid> wrote in message
news:40**********@Usenet.com...
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
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 20 '05 #2

P: n/a
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 = "no*@non.com"
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

Nov 20 '05 #3

P: n/a
* ja*******@gmail-dot-com.no-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/>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4

P: n/a
Indy,

In addition to Herfrieds list I use the News/Net component from Mabry:

http://www.mabry.com/mabry.net.news/

-Sam Matzen
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2k************@uni-berlin.de...
* ja*******@gmail-dot-com.no-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/>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #5

P: n/a
* "Samuel L Matzen" <sm*****@slm.com> scripsit:
In addition to Herfrieds list I use the News/Net component from Mabry:

http://www.mabry.com/mabry.net.news/


Thank you for the link (added to my FAQ).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6

P: n/a
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
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 20 '05 #7

P: n/a
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" <ja*******@gmail-dot-com.no-spam.invalid> wrote in message
news:40********@Usenet.com...
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
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 20 '05 #8

P: n/a
> 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.
Nov 20 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.