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