Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

To download URL contents as plain text

$
0
0

Hi,

Can any one let me know haw can I download website contents as plain text.

I need to get website contents and search for specific pattern. I am trying code below, but the out put I am getting is kind of HTML. I am not able to search my pattern. (Pasting test URL). I am looking for only data and not for posters inside.

$url = "http://office.microsoft.com/en-in/excel/"

$wc = new-object net.WebClient
$wc.Credentials= New-Object System.Net.NetworkCredential("Username","Password")

$wc.downloadstring($url) 

Thanks,

Guru


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>