如何定期从其公共网站获取北京航空的数据? [英] How to get the beijingair data from it's public website periodically?

查看:83
本文介绍了如何定期从其公共网站获取北京航空的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何定期从其公共网站获取北京航空的数据?网站是 http: //zx.bjmemc.com.cn/ [ ^ ]

当我点击AQI时,我想每小时从gridview获取数据,图片链接是 https://www.yousendit.com/download/UW14SlIrYStLVlVsYzlVag [ ^ ]?

我需要编码还是只有一个工具可以做到这一点?你能告诉我工具的名字,谢谢!

How to get the beijingair data from it''s public website periodically?The website is
http://zx.bjmemc.com.cn/[^]
I want to get the data from gridview every hour when I click the AQI,and the picture link is https://www.yousendit.com/download/UW14SlIrYStLVlVsYzlVag[^]?
Do I need to code or there just have a tool can do this?Can you show me the tool''s name,Thank you!

推荐答案

我不想看到那些网站上有什么内容;没关系;无论如何,你没有解释你需要提取什么样的数据。



在所有情况下,你需要使用一些 Web抓取技术 http://en.wikipedia.org/wiki/Web_scraping [ ^ ]。



基本上,你需要采取行动像Web客户端一样,发送一些HTTP请求并获得HTTP响应。然后你需要一些东西来解析收到的内容作为回应。如果这是HTML,您将需要解析它。基本上,就是这样。



请参阅我过去的建议,了解如何做到这一切:

从网页获取特定数据 [ ^ ],

< a href =http://www.codeproject.com/Answers/211738/How-to-get-the-data-from-another-site#answer3>如何从其他网站获取数据 [ ^ ]。



-SA
I don''t want to see what''s in those sites; it just does not matter; anyway, you did not explain what kind of data you need to extract.

In all cases, you need to use some technique of Web scraping: http://en.wikipedia.org/wiki/Web_scraping[^].

Basically, you need to act like a Web client, send some HTTP requests and get HTTP response. And then you need something to parse the content received in response. If this is HTML, you will need to parse it. Basically, that''s it.

Please see my past advice on how to do it all:
get specific data from web page[^],
How to get the data from another site[^].

—SA


这篇关于如何定期从其公共网站获取北京航空的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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