Using powershell to parse web requests


Overview

With powershell, you can make a request to a url, parse the results and submit a form.  Basically, if you can do it in a browser with your mouse and keyboard, you can do it with powershell.  If you find yourself doing having to get data or update something on a website manually on a regular basis, you can automate it via powershell and a windows scheduled task.

Examples

Using COM and Internet Explorer automation
https://westerndevs.com/simple-powershell-automation-browser-based-tasks/

Using Invoke-WebRequest commandlet
https://4sysops.com/archives/powershell-invoke-webrequest-parse-and-scrape-a-web-page/

https://adamtheautomator.com/invoke-webrequest-powershell/


No comments:

Post a Comment

Add appsettings.json to .NET 6 Console App

  When you start a new .NET 6 Console app, you will have little more than what you see here.   If one wants to use the json configuration fi...