This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Downloading webpages through Powershell v3?
04-08-2014, 08:01 PM
Post: #1
Downloading webpages through Powershell v3?
I am currently trying to download webpages through Powershell. I am succeeding in downloading the actual webpage using the following command line:

C:\\Users\Username> Invoke-WebRequest -Uri http://www.scriptingguys.com/blog

However, I cannot find where the webpage has been saved so I want to set up a path in the code where the webpage will automatically save (I was able to do this through wget on UNIX).

Also, can these commands be run on several webpages at once?

Any help appreciated.

Ads

Find all posts by this user
Quote this message in a reply
04-08-2014, 08:07 PM
Post: #2
 
Top hit for a Google of "Invoke-WebRequest" is the reference page from Microsoft. In that page it clearly defines what happens to the content from the webpage and how, using the -OutFile parameter, you can change it.

Top hit for a Google search of "powershell parallelism" gives specific examples of running tasks in parallel. In fact, the top several hits all look relevant in different ways.

Ads

Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)