Click here to Skip to main content
13,005,198 members (60,713 online)
Rate this:
Please Sign up or sign in to vote.
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

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;
Posted 6-Jun-12 4:00am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 6 Jun 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100