Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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;
Posted

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900