I'm trying to wrap my head around the command invoke-webRequest
.
For testing purposes, I am using one of my old website projects. The website has several dynamic (auto updating) DIV ID-names, which defines the DIV function. (Eg: I am now searching for Dev to find a way to read the entire contents of these specific Divi Containers including HTML code. In HTML = Invoke-WebRequest -Uri "http: // localhost: 6642 /" ($ HTML.ParsedHtml) Can someone start heading me in the right direction? You use a hashteble to save information Can:
$ r = iwr http: //yahoo.fr $ cpt = 1 $ resu = @ {} $ R.ParsedHtml.getElementsByTagname ("div") |% {if ($ _. Id -q $ null) {$ _. Id = "div $ cpt"; $ Cpt ++} $ resu [$ ($ _ id)] = $ _. InnerHTML} $ resu
No comments:
Post a Comment