开发者

ASP , extract data from bbs

HI all.

im new to asp programming.

i want to extract data from bbs,http://sports.williamhill.com/bet/en-gb/betting/y/5/tm/Football.html

my plan is first, if i click some button, i go above page and extract 'Daily Match List'.

and with extracted data, i want to remove some unneed part of html source.

so what i want to extract data will be such like following

19:45 UK  swidon VS Bristol Rovers 21/20 23/10 13/5

19:45 UK  Brazil VS Ukraine         4/9  16/5  6/1

.

.

.

then i want insert this extracted data to excel file .

开发者_高级运维sorry my english

thanks in advance


I would look at using httpwebrequest - you can then make a web request to that page and access the html from the response. You then need to look for something that will identify the block of information your after and strip this out of the response.

However, there are some downsides to taking a screen scrap approach, if William Hill decide to change the format of the web page then it may break your code.

http://www.netomatix.com/HttpPostData.aspx http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx

Cheers Tigger

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜