What's new

.NET Get String From Website

  • Thread starter Jack The Stripper
  • Start date
  • Views 497
Jack The Stripper

Jack The Stripper

Snap? Crackle? Pop?
Messages
608
Reaction score
92
Points
105
Sin$
0
Okay i'm stuck on this part of the program i am making iv'e done research and stuff on it and i just cant seem to figure it out....How would i get a Certain string or Int. from a websites page By the way it will be in VB.net
EXAMPLE
http://markets.wsj.com/

from that website how would i get the change of Nasdaq?

If you can help i appreciate it thanks!
 
OGxKushxKing

OGxKushxKing

The King of Kush
Programmer Seasoned Veteran Tutorial Creator
Messages
709
Reaction score
214
Points
245
Sin$
7
Not sure exactly but use a web browser and use a for each statement to get all the html elements. Then use an if statement to filter out anything but Nasdaq.
 
Jack The Stripper

Jack The Stripper

Snap? Crackle? Pop?
Messages
608
Reaction score
92
Points
105
Sin$
0
Not sure exactly but use a web browser and use a for each statement to get all the html elements. Then use an if statement to filter out anything but Nasdaq.

ok im gonna try that . Thanks!
 
Fire30

Fire30

Seasoned Member
Messages
7,222
Reaction score
2,364
Points
635
Sin$
0
You need to parse the html, the xpath to get to the stock market details is:

//*[@id="majorStockIndexes_moduleId"]/table/tbody/
 
ActionScript

ActionScript

XG R4PiDzZ
Grizzled Veteran Programmer Modder
Messages
2,649
Reaction score
1,405
Points
475
Sin$
0
Can't you use Yahoo stock market API? There are alternatives too.
 
Jack The Stripper

Jack The Stripper

Snap? Crackle? Pop?
Messages
608
Reaction score
92
Points
105
Sin$
0
Do what he said and try find a stocks api, maybe you can even find a vb wrapper or a dll for one. It will save u so much time and errors.

Ok well soon im gonna make a release for what im making its gonna be pretty helpful .... anyways thanks for all the help
 
Top Bottom
Login
Register