Advertisement
Guest User

pull.lua

a guest
Apr 9th, 2020
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement