Jump to content
  • 0

DOWNLOADING


SHUVAM
 Share

Question

11 answers to this question

Recommended Posts

  • 0

which io. func should i use

Sent from my Redmi Y1 Lite using Tapatalk

[added 1 minute later]

gg.makeRequest('https://doc-08-4o-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/j53ft9ui16r3t0blmodak5cs1ubss775/1552917600000/04169933601355940676/*/18KWCHguZlrm7yAC2Q1dDzxY-GJe_3_EY?e=download')

what to do nxt@enyby

Sent from my Redmi Y1 Lite using Tapatalk

Link to comment
Share on other sites

  • 0
Read about io.open.
actually i want to make a utub downloader
how to write bytes?

Sent from my Redmi Y1 Lite using Tapatalk

[added 2 minutes later]

data=gg.makeRequest('anylink')
io.open('example.lua', "w")
--what to do next?

Sent from my Redmi Y1 Lite using Tapatalk

Link to comment
Share on other sites

  • 0
  • Administrators

At a minimum, read the API and description of makeRequest. Get data to variable. The contents of the variable to write to the file.
If you do not know how to do this, you should definitely read books or articles, because you will stumble at every step if you do not know such basic concepts.

I will not sit with you and write line by line.

Link to comment
Share on other sites

  • 0
At a minimum, read the API and description of makeRequest. Get data to variable. The contents of the variable to write to the file.
If you do not know how to do this, you should definitely read books or articles, because you will stumble at every step if you do not know such basic concepts.
I will not sit with you and write line by line.
okay i will try my best thnx

Sent from my Redmi Y1 Lite using Tapatalk

Link to comment
Share on other sites

  • 0
5 hours ago, SHUVAM said:

 

is there any way to download files through script? @enyby

 

local fileData = gg.makeRequest('https://badcase.org/yourFile.txt').content

file = io.open(gg.EXT_STORAGE .. '/Download/yourFileName.txt', 'w')
file:write(fileData)
file:close()

 

Link to comment
Share on other sites

  • 0
local fileData = gg.makeRequest('https://badcase.org/yourFile.txt').contentfile = io.open(gg.EXT_STORAGE .. '/Download/yourFileName.txt', 'w')file:write(fileData)file:close()

 

why .content and what is gg.External

Sent from my Redmi Y1 Lite using Tapatalk

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.