获取网页文本(称为脚本) [英] Get Web Page text (that is called but a script)

查看:112
本文介绍了获取网页文本(称为脚本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的会员;

我想解析一些我正在制作的软件的网页文本. (Windows应用程式)
如果ajax调用网页中的文本,我会遇到问题
例如:
Facebook活动页面

http://culturewheel.com/eng/Calendar [

Dear members ;

I want to parse some webpage text for a software i''m making. (windows App)
I have a problem in getting the text inside the webpage if it''s called by ajax
As an example:
Facebook event page
Or
http://culturewheel.com/eng/Calendar[^]

using the WebClient or HttpRequest/Response Does NOT get the actual or filled text (As you''ll find it in Right Click --> Inspect Element for example).


How can i get the Whole webpage (After all the ajax calling & filling etc)?


Thank you in Advance;

推荐答案

您几乎需要编写一个浏览器.或嵌入一个(例如WebBrowser控件).然后,您需要确定如何确定何时完成了一切",因为请求的完成和onLoad事件将不再告诉您.

这是一大堆蠕虫,如果可能的话,您应该使用替代方法.例如,我认为Facebook有一个API,可用于检索事件等信息.
You need to write a browser, pretty much. Or embed one (e.g. the WebBrowser control). And then you need to work out how to determine when ''everything'' has been done, since the completion of the request and the onLoad event won''t tell you any more.

It''s a huge can of worms, you should use an alternative if at all possible. For example I think Facebook has an API you can use to retrieve information like events.


这篇关于获取网页文本(称为脚本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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