Advertisement
Guest User

Untitled

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