From the course: Complete Guide to PowerShell 7
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Automating web operations - PowerShell Tutorial
From the course: Complete Guide to PowerShell 7
Automating web operations
- [Instructor] Now, another capability available to us is the ability to use that invoke web request and retrieve information from static information, like a site for example. So let's just click on here. I've got a link, localhost:9090. Let's open the browser, and there's my test page. It's a web browser page. It's just HTML. It's got some names, it's got some statuses, and it's got some dates. So let's minimize that. What I want to be able to do is just simply grab that. So I could, say, invoke the request to that one, run that selection, and then what I should be able to do is just say, notepad site.html, and it gives me the HTML data, like, just to completely dump down the website. Now, that's not particularly helpful because of course we just taken the HTML of the website, and that may not include everything. That may not include any of the JavaScript that might be in the page, et cetera. What we can do though, is we can scrape data specifically from the page. So if I go ahead…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Working with APIs and web services11m 36s
-
(Locked)
Making HTTP requests with Invoke-RestMethod8m 33s
-
(Locked)
Making HTTP requests with Invoke-WebRequest1m 59s
-
(Locked)
Parsing JSON data2m 27s
-
(Locked)
Parsing XML data3m 23s
-
(Locked)
Creating custom API integrations9m 4s
-
(Locked)
Automating web operations5m 47s
-
(Locked)
Handling other data formats4m 34s
-
(Locked)
-
-
-