writing help: Does anyone know how to use Visual Basic to get text from a website? - Help.com

griffonlord
offline Verified (1 year, 3 months) Visit griffonlord's shoutbox
An Unknown Location

Does anyone know how to use Visual Basic to get text from a website?

I am writing a program and I need to use a page that is constantly updating for reference. I need to know how to tell the program to go to a site and save the text (just text) as a .txt file.

This open post was written 1 year, 2 months ago | V/U/S: 187, 7, 2 | Edit Post | Leave a reply | Report Post


Reciprocity (0) Reciprocation Failure -- The poster has NOT helped anyone else yet!

Since writing this post griffonlord may have helped people, but has not within the last 4 days. griffonlord is a verified member, has been around for 1 year, 3 months and has 8 posts and 63 replies to their name.

Post Tags (10)

Replies (7)

Where were you?

Click and drag to move the map around. FAQ: How we place people on this map »
You can also watch events on Help.com as they happen
Mouse over the map for 2 seconds to see an expanded, interactive view

Mak' offline Verified User (1 year, 3 months) Long Term User Shouts: 22 #
An Undisclosed Location | 1 year, 2 months ago (13 minutes after post)

Can you elaborate, I’m not sure I follow what you’re doing. I’m not sure if .net has any faculties for parsing html, but you could always use the classes in the System.net namespace to download the html and parse it yourself.

Quote this reply Report this reply to moderators
griffonlord offline Verified User (1 year, 3 months) Long Term User Shouts: 0 #
An Unknown Location | 1 year, 2 months ago (1 hour, 14 minutes after post)

I am making a program to calculate a # based on certain values in an XML feed. I need to copy the text into a .txt file and extract values.

Quote this reply Report this reply to moderators
Mak' offline Verified User (1 year, 3 months) Long Term User Shouts: 22 #
An Undisclosed Location | 1 year, 2 months ago (1 hour, 33 minutes after post)

Oh well that makes it much easier. You can use System.xml.XmlTextReader to parse the xml and pull the values out. There’s probably no need to copy it into a file unless you absolutely have to. You are using Vb .net right?

Quote this reply Report this reply to moderators
griffonlord offline Verified User (1 year, 3 months) Long Term User Shouts: 0 #
An Unknown Location | 1 year, 2 months ago (1 day after post)

Yah.

Quote this reply Report this reply to moderators
griffonlord offline Verified User (1 year, 3 months) Long Term User Shouts: 0 #
An Unknown Location | 1 year, 2 months ago (1 day, 1 hour after post)

Then what? How do I get it off the website?

Quote this reply Report this reply to moderators
Mak' offline Verified User (1 year, 3 months) Long Term User Shouts: 22 #
An Undisclosed Location | 1 year, 2 months ago (2 days, 23 hours after post)

Construct the XmlTextReader with the url of the rss feed. Then you can use the read() method to grab each successive node in the stream. The values of the current node are then exposed as properties in the reader object.

Quote this reply Report this reply to moderators
griffonlord offline Verified User (1 year, 3 months) Long Term User Shouts: 0 #
An Unknown Location | 1 year, 2 months ago (3 days, 11 hours after post)

Great, thanks.

Quote this reply Report this reply to moderators

Invite Others to Help

A logged in and verified Help.com member has the ability to setup a Friends List and invite others to help with posts.