473,472 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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
8 1380
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
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
* 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
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
* "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
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
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
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Martin Hvidberg | last post by:
Dear group I need to make a very simple piece of code in C, that can be command line executed and will compile on Linux, i.e. gcc. It should read a ascii Comma Separated Values (CSV) file and...
32
by: Clunixchit | last post by:
How can i read lines of a file and place each line read in an array? for exemple; array=line1 array=line2 ...
5
by: manokumar | last post by:
hiye, i notice that some if not all of my folders in winxp pro. are set as read only and its giving me some problem with development. so as the natural thing, i unchecked the read only option and...
7
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I first did a complete uninstall of .NET 2003, .NET Framework 1.1, and IIS. I also completely deleted...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
41
by: ravi4udude | last post by:
Why these used as variable name? any story?
19
by: jim | last post by:
(from http://www.news.com/8301-13578_3-9798715-38.html ) October 16, 2007 5:56 PM PDT RIAA tries to pull plug on Usenet. Seriously. Posted by Declan McCullagh The Recording Industry Association...
2
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi Is there any way to Read an INIFile from a string or Stream instead of a physical file ??? I want to read the INIFile into a string then store in a db but when I read the string from the...
5
by: b.buz | last post by:
Hello to everybody! Does someone know a very simple php script (or class) to read nntp protocol (for usenet). I only need to read newsgroups and save them to a mysql table. Thanks to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.