Daybreak Faction - Puzzle 3

This topic contains 2 replies, has 2 voices, and was last updated by  JB Lewis 2 weeks, 4 days ago.

  • Author
    Posts
  • #92468

    Brandon Olin
    Participant

    Here is my solution to puzzle 3. I'm not happy with just outputting the raw HTML when selecting to open the post link in the console. Hoping others have a more elegant solution to that. Tested on https://powershell.org/feed/ and my own blog https://devblackops.io/feed.xml

    Works on PowerShell 5.1/6.0

  • #92737

    JB Lewis
    Participant

    Instead of

    $feeds = [xml](Invoke-WebRequest -Uri $Uri -UseBasicParsing)

    I tried

    $Feeds = Invoke-RestMethod -Method Get -Uri $Uri

    , avoiding the need to drill into .rss.channel.item.

    I haven't tried writing the output half of the script yet.

    • #92836

      JB Lewis
      Participant

      And now I have it on good authority that I've gone astray with ver6 compatibility trying to use Invoke-WebRequest. Oh well.

You must be logged in to reply to this topic.