21 Feb 2009
Scraping… in VBScript
So this is a tidbit I discovered while cleaning out some files. It is a VBScript class to do basic scraping, and a test script to validate the methods in the class–and scrape a web page to an XML document. The WSF file is the execution file, which links the two VBS source files together. To run it, unpack it a folder, and at a command-line with that folder as the current directory, enter…
1 | cscript ScrapeClass_TEST.wsf |
The class, as is, can’t do anything beyond capturing the response stream from a simple request, and the extraction is hard-coded for the page it targets. Yet it does demonstrate what is possible with VBScript and ActiveX objects.
It’s older code, but enjoy. You can download the code in the Download page (ScrapeClass_vbs.zip).
Leave a Comment
You must be logged in to post a comment.