How do I.....
-
How would I extract the informatiom from html code... I want to extract the table data and display it tabpage w/gridview. I need the table headers, the URL's for the images, weather discriptions(Partly Cloudy, PM T-Storms, etc..) and the 5 day highs and lows. How would I go about getting the data I described? The web page is the Yahoo rss feed, lines 280 to 299. This is the 5-day forecast. THNX in advance for the help.
rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If
-
How would I extract the informatiom from html code... I want to extract the table data and display it tabpage w/gridview. I need the table headers, the URL's for the images, weather discriptions(Partly Cloudy, PM T-Storms, etc..) and the 5 day highs and lows. How would I go about getting the data I described? The web page is the Yahoo rss feed, lines 280 to 299. This is the 5-day forecast. THNX in advance for the help.
rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If
Hi, 1. you get the HTML code in one of many ways, e.g.: - use WebBrowser, set URL, get DocumentText - use HttpRequest and HttpResponse 2. having one huge string, extract what you need, in one of many ways, e.g.: - if it is strict XML, you could use XmlDocument or XPath (don't ask me for details!); - if not: if you are proficient in regex, use it; - otherwise, use String methods, such as IndexOf and Substring. Whatever you do, be aware that you are relying on how it is constructed now, which may change at any time; with strict checking you may avoid false results and will fail sooner, with more relaxed matching, you may fail without knowing it and return false information. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
-
How would I extract the informatiom from html code... I want to extract the table data and display it tabpage w/gridview. I need the table headers, the URL's for the images, weather discriptions(Partly Cloudy, PM T-Storms, etc..) and the 5 day highs and lows. How would I go about getting the data I described? The web page is the Yahoo rss feed, lines 280 to 299. This is the 5-day forecast. THNX in advance for the help.
rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If
I went to Yahoo's site and found the following link. See if that helps. http://developer.yahoo.com/weather/[^]
-
I went to Yahoo's site and found the following link. See if that helps. http://developer.yahoo.com/weather/[^]
I didnt know that page existed, but I already have all that info. I already get everything except for the 5-day forecast, which I do not know how to extract it. I need some type of a code example to get me started in the right direction.
rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If
-
Hi, 1. you get the HTML code in one of many ways, e.g.: - use WebBrowser, set URL, get DocumentText - use HttpRequest and HttpResponse 2. having one huge string, extract what you need, in one of many ways, e.g.: - if it is strict XML, you could use XmlDocument or XPath (don't ask me for details!); - if not: if you are proficient in regex, use it; - otherwise, use String methods, such as IndexOf and Substring. Whatever you do, be aware that you are relying on how it is constructed now, which may change at any time; with strict checking you may avoid false results and will fail sooner, with more relaxed matching, you may fail without knowing it and return false information. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
I think I will have to use the string options. The next thing is, How do I do this in VB? All I need is a starting position and I can figure the rest out. How do I use the code?
rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If
-
I didnt know that page existed, but I already have all that info. I already get everything except for the 5-day forecast, which I do not know how to extract it. I need some type of a code example to get me started in the right direction.
rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If
Have you considered reading the documentation ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Have you considered reading the documentation ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
I copied the text, printed it out, and have been studying it for the past 2 1/2 hours. I have it figured out. A BIG THANK YOU for your help and support.
rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If
Excellent - see that's what we are here for to help you learn, give you guidance when you get stuck with some code. Your persistent request for code/example/sample/[snd me codz plz] is a standing joke in the forums and only irritates the people who answer the question here. Thats why you got links and suggestions you read some. When you get stuck into the coding and have a problem then come back and ask, the response will be very different. Note: your post was also 5 voted (not by me) to indicate approval.
Never underestimate the power of human stupidity RAH
-
Excellent - see that's what we are here for to help you learn, give you guidance when you get stuck with some code. Your persistent request for code/example/sample/[snd me codz plz] is a standing joke in the forums and only irritates the people who answer the question here. Thats why you got links and suggestions you read some. When you get stuck into the coding and have a problem then come back and ask, the response will be very different. Note: your post was also 5 voted (not by me) to indicate approval.
Never underestimate the power of human stupidity RAH
Now I know why I see all links instead of code. You have to Read. If you dont read, You dont code. It is like living in Georgia, USA. This is a 'Right To Work' State, If you dont work, You dont Eat.
rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If
-
Now I know why I see all links instead of code. You have to Read. If you dont read, You dont code. It is like living in Georgia, USA. This is a 'Right To Work' State, If you dont work, You dont Eat.
rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If
Yep Singapore is the same, no welfare.
Never underestimate the power of human stupidity RAH