Click here to Skip to main content
Rate this: bad
good
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
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 6-Jun-12 5:00am

1 solution

Rate this: bad
good
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.
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 6 Jun 2012
Copyright © CodeProject, 1999-2014
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