{"id":82725,"date":"2018-02-21T11:00:32","date_gmt":"2018-02-21T19:00:32","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/?p=82725"},"modified":"2019-02-18T09:10:01","modified_gmt":"2019-02-18T16:10:01","slug":"powertip-use-powershell-to-read-an-rss-feed","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-use-powershell-to-read-an-rss-feed\/","title":{"rendered":"PowerTip: Use PowerShell to read an RSS feed"},"content":{"rendered":"<p><strong>Summary:<\/strong> \u201cHey, Scripting Guy!\u201d shows you how to use <strong>Invoke-RestMethod<\/strong> to read a list of entries from an RSS feed.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\"><img decoding=\"async\" width=\"34\" height=\"34\" class=\"alignnone size-full wp-image-82735\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" \/><\/a> \u00a0How can I use Windows PowerShell to see the list of articles from an RSS feed?<\/p>\n<p style=\"padding-left: 30px\">\u00a0 \u00a0<a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\"><img decoding=\"async\" width=\"34\" height=\"34\" class=\"alignnone size-full wp-image-82745\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" \/><\/a> \u00a0 Just use the <strong>Invoke-RestMethod<\/strong> and provide the full path to the link to the RSS feed. Here is an example:<\/p>\n<p style=\"padding-left: 90px\">\u00a0\u00a0 Invoke-RestMethod -Uri &#8216;https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/rss.aspx<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/dr_scripto.png\"><img decoding=\"async\" width=\"96\" height=\"145\" class=\"alignnone size-full wp-image-82775\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/dr_scripto.png\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: \u201cHey, Scripting Guy!\u201d shows you how to use Invoke-RestMethod to read a list of entries from an RSS feed. \u00a0How can I use Windows PowerShell to see the list of articles from an RSS feed? \u00a0 \u00a0 \u00a0 Just use the Invoke-RestMethod and provide the full path to the link to the RSS feed. [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[639],"tags":[356,3,154,45],"class_list":["post-82725","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powertip","tag-powertip","tag-scripting-guy","tag-sean-kearney","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: \u201cHey, Scripting Guy!\u201d shows you how to use Invoke-RestMethod to read a list of entries from an RSS feed. \u00a0How can I use Windows PowerShell to see the list of articles from an RSS feed? \u00a0 \u00a0 \u00a0 Just use the Invoke-RestMethod and provide the full path to the link to the RSS feed. [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/82725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=82725"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/82725\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=82725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=82725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=82725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}