Guest User

pull.lua

a guest
Apr 9th, 2020
193
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local http = require("internet")
  2. local args = {...}
  3.  
  4. local handle = http.request(args[1])
  5. local result = ""
  6.  
  7. for chunk in handle do result = result..chunk end
  8.  
  9. local file = io.open(args[2], "w")
  10. file:write(result)
  11. file:close()
RAW Paste Data