Donate to us via Paypal!
Few are those who can see with their own eyes and hear with their own hearts. - Albert Einstein
Wednesday, September 30, 2020
Navigation
Home
 Find:
 Information:
Learn
Communicate
Submit
Shop
Challenges
 Exploit:
 Programming:
 Think:
 Track:
 Patch:
 Other:
 Need Help?
Other
Members Online
Total Online: 76
Guests Online: 73
Members Online: 3

Registered Members: 128873
Newest Member: testingaccounthbhlol
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: 1640
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: 1640
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: 1640
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");


.