I have a list of several thousand URLs, and I'd like to search each of these pages for a given word. How can I do this programmatically on Windows, preferably using VBScript or Powershell?
Edit: The original question didn't specify VBScript & Powershell. I'm leaving this Python suggestion in hopes that someone in the future will benefit.
What is the quickest way to do this programmatically on Windows? I guess 'quickest' is a function of your abilities.
With my skills, I would whip up a python script for that, as that would be the quickest way for me. The script, as I would write it, would looks kind of like
Of course, that's sort of Pseudo-Python. You'll have to find a library that'll grab a site for you. And obviously it'd require a little recursive function and some string parsing if you wanted to search all pages within each site referenced in the input file.
I solved my own problem, in case anyone else faces the same requirement: