r/visualbasic • u/[deleted] • Jun 05 '19
Save a webpage that uses Ajax
I run a number of programs that I've written to download and parse webpages, but pages that use Ajax are a problem. I find that using Chrome and saving the complete webpage will save an HTML file with the needed data, but communicating with Chrome is a problem. Has anyone been successful in integrating Chrome or other browser to be able to programmatically save an Ajax page?
6
Upvotes
1
u/andrewsmd87 Web Specialist Jun 05 '19
You should be able to make a normal web request using VB to make the page respond as if you're requesting it in a browser. This can get tricky as automatically downloading html usually means you're trying to do something nefarious. What's your use case for this?