Donate to us via Paypal!
Imagination is more valuable than knowledge - Albert Einstein
Saturday, July 04, 2020
Navigation
Home
 Find:
 Information:
Learn
Communicate
Submit
Shop
Challenges
 Exploit:
 Programming:
 Think:
 Track:
 Patch:
 Other:
 Need Help?
Other
Members Online
Total Online: 53
Guests Online: 51
Members Online: 2

Registered Members: 127015
Newest Member: FOUr
Latest Articles

View Thread

HellBound Hackers | Computer General | Programming

Author

Automatic Program script

maspur
Member

Your avatar

Posts: 3
Location: indonesia
Joined: 17.02.20
Rank:
Moderate
Posted on 19-02-20 14:49
i want to make an automatic file download program from URL

can anyone help me come up with an idea?


0076
Author

RE: Automatic Program script

Huitzilopochtli
Member



Posts: 1639
Location:
Joined: 19.02.13
Rank:
God
Posted on 20-02-20 04:19
You haven't given us a lot of information to work with there man.

Anyway, if it's a static url ie : http://www.site.com/downloads/file.xxx

Using Python 2+

import urllib
urllib.urlretrieve ("url", "file.xxx")

Using Python 3+

import urllib.request
urllib.request.urlretrieve("url", "file,xxx")

Or using wget:

import wget
wget.download('url')

Or if the link changes and is embedded in a webpage:

Send a GET request to the page where the link is.
Search the returned html for the correct href tag containing the link.
Open the link via one of the above.


.

Edited by Huitzilopochtli on 20-02-20 15:14
Author

RE: Automatic Program script

maspur
Member

Your avatar

Posts: 3
Location: indonesia
Joined: 17.02.20
Rank:
Moderate
Posted on 20-02-20 15:10
How about using batch.?


0076
Author

RE: Automatic Program script

Huitzilopochtli
Member



Posts: 1639
Location:
Joined: 19.02.13
Rank:
God
Posted on 20-02-20 15:33
Both wget and curl can be used with batch.


.
Author

RE: Automatic Program script

maspur
Member

Your avatar

Posts: 3
Location: indonesia
Joined: 17.02.20
Rank:
Moderate
Posted on 21-02-20 03:15
can i put this program code in html?

for example, when someone opens my web he will automatically download my file.3


0076
Author

RE: Automatic Program script

Huitzilopochtli
Member



Posts: 1639
Location:
Joined: 19.02.13
Rank:
God
Posted on 21-02-20 10:29
Probably not. Try an iframe or window.open("link/to/file");


.