Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Using PowerShell to parse local HTML files

$
0
0

Hey guys,

I have a folder filled with HTML files, downloaded using Invoke-WebRequest, that I'm trying to parse.

I've tried to accomplish this by creating a IE ComObject and opening the files using the Navigate method, but this seems to remove all IE methods including Body and Document.

The website from which the files came from is no longer available so I can't simply use  Invoke-WebRequest to get a HtmlWebResponseObject and parse it.

How can I either:

a) Convert the files to a HtmlWebResponseObject

b) Use an IE ComObject to parse them


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>