c# - Replicating JSP/JSF/IceFaces requests for scraping purposes -
i trying scrape data off enterprise website made using jsf , icefaces. using c# , restsharp library.
i have no experience jsp , jsf or icefaces @ all, trying figure out how replicate site doing using http requests wasn't successful. site not have concept of routing whatsoever (and when accidentally happen press button in browser, logged out...).
what have managed far:
- make post request credentials
/loginresource in order log in - retrieve jsessionid cookie after login , store
cookiecontainer - use regexes
ice.session,ice.viewvalues - replicate post request
block/send-receive-updates
if original post request managed js code on site (when clicking around), returns xml response this:
<updates> <update address="some form id" tag="table"> ... </update> <update address="content" tag="div"> ... </update> <update address="the ice.session id, ice.view number separated : followed string 'dynamic-code'" tag="script"> ... </update> </updates> however, took encoded post params request doing on site , replicated them in c# code , response has last update (script tag) this:
<updates> <update address="the ice.session id, ice.view number separated : followed string 'dynamic-code'" tag="script"> ... </update> </updates> does please have experience scraping/testing these technologies , can me figure out doing wrong ?
thanks.
Comments
Post a Comment