如何从其他网页读取股票价值 [英] how to read stock values from other web pages

查看:69
本文介绍了如何从其他网页读取股票价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设计自己的股票交易应用程序,需要从类似
的网站上读取一些股票交易和Sensex值.
http://money.rediff.com/
http://www.appuonline.com/

我不知道如何从各个网站读取这些值

请帮忙.


在此先谢谢您.

I want to design my own stock exchange application in which I need to read some stock exchange and sensex values from websites like

http://money.rediff.com/
http://www.appuonline.com/

I am not getting any idea, that, how to read these values from respective websites

please help.


Thanks in advance.

推荐答案

您需要编写屏幕抓取工具,即使用.NET类之一读取HTML并允许访问DOM树的程序.您所阅读页面的大小.尝试在Google上搜索屏幕抓取器"以获取构想.
You need to write a screen scraper, i.e. a program that uses one of the .NET classes to read HTML and gives access to the DOM tree of the page that you read. Try a Google search for "screen scraper" for ideas.


如果您确实需要从网站(而非Web服务或其他网站)获取数据,则确实需要使用Web抓取技术,正如理查德已经指出的那样.我在过去的答案中解释了它们是如何工作的:

如何从另一个站点获取数据 [ ^ ],
从网页中获取特定数据 [
If you really need to get data from Web sites, not Web services or something else, you really need to use Web scraping techniques, as Richard already pointed out. I explained how they work in my past answers:

How to get the data from another site[^],
get specific data from web page[^].

—SA


这篇关于如何从其他网页读取股票价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆