Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $WebClient = New-Object System.Net.WebClient
  2.  
  3. while(1){
  4.     $Timestamp = [string][int][double]::Parse((Get-Date -UFormat %s));
  5.     $WebClient.DownloadFile("https://api.whitehouse.gov/v1/petitions/2488296.json","C:\WhiteHouse\"+ $Timestamp + "_2488296.json")
  6.     start-sleep -Seconds 60
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement