Get Parsed HTML from downloaded html file

This topic contains 2 replies, has 3 voices, and was last updated by  random commandline 1 year, 4 months ago.

  • Author
    Posts
  • #38525

    blueMahakala
    Participant

    I want to use Invoke-WebRequest downloadedFile.html and parse the html, but the object this returns contains a property '.ParsedHtml' which has no data when pointing to an offline file. Is there a way to do this to get parsed html data? Is there another way to do this?

    Many Thanks!

  • #38526

    Dave Wyatt
    Moderator

    I looked into this a while ago and couldn't make it work, but you can download the HTML Agility Pack DLL and use that instead. It works regardless of the source (and generally performs much better anyway.) You can find it at https://htmlagilitypack.codeplex.com/

  • #38527

    random commandline
    Participant

    What info are you searching for in this html file?

You must be logged in to reply to this topic.