How to download a file from a website?

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
A bit stuck on how to download a file from a website.

Getting ZennoPoster to click a download link is easy but how can we manage the download dialogue windows that follow? :confused:

Mostly they just need to be clicked "OK" but how do we get ZennoPoster to do this?

Thanks
 

step85

Client
Регистрация
19.02.2010
Сообщения
1 839
Благодарностей
287
Баллы
83

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
Got the downloading working but it returns an error after a successful download.

The problem seems to be related to these parameters {instance-ip} {instance-port}

I assume these parameters are only are needed when using proxies?

Is there any documentation on this?

It is kind of slow progress figuring out everything by trial and error.

Thanks.
 

Red

Client
Регистрация
18.02.2011
Сообщения
17
Благодарностей
3
Баллы
0
I am having trouble as well with this. Step85 would you please be able to give an example of how to click the link. I can not work out how to click the link and add the wget command to download the file.
2. Parses the url file.
3. Add your own code step - "their own program instead of the binary write something like:
"wget.exe" macro link on the path to the file.,
 

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
You don't need to click the link. You just scrape the link. Then use a "Own code" step and "Own program" object. Put the path to wget and the the download parameters in. (See the wget documentation online).

The end result will look something like this:
PHP:
"C:\Program Files\GnuWin32\bin\wget.exe" downloadlink
 

Red

Client
Регистрация
18.02.2011
Сообщения
17
Благодарностей
3
Баллы
0
Thanks BlackSun, i will give that a try.

Did you work out, or find a way to get it to work with the parameters {instance-ip} {instance-port}
The problem seems to be related to these parameters {instance-ip} {instance-port}
Or did you just leave them out?
 

step85

Client
Регистрация
19.02.2010
Сообщения
1 839
Благодарностей
287
Баллы
83

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
Thanks BlackSun, i will give that a try.

Did you work out, or find a way to get it to work with the parameters {instance-ip} {instance-port}

Or did you just leave them out?
I left those parameters out. I believe they are needed if you wish to use the same proxy as the template for the download. However if you're not using a proxy they seem to cause an error. I wasn't using a proxy and I've not yet tested a download using proxies.
 

Red

Client
Регистрация
18.02.2011
Сообщения
17
Благодарностей
3
Баллы
0
I left those parameters out. I believe they are needed if you wish to use the same proxy as the template for the download. However if you're not using a proxy they seem to cause an error. I wasn't using a proxy and I've not yet tested a download using proxies.
Ahh ok, thanks for your reply.
 

Red

Client
Регистрация
18.02.2011
Сообщения
17
Благодарностей
3
Баллы
0
For change name file and set a way "C:\Program Files\GnuWin32\bin\wget.exe" -O C:\namefile.png http://yandex.st/yaru/1.7/logo.png
For set only a way "C:\Program Files\GnuWin32\bin\wget.exe" -P C:\ http://yandex.st/yaru/1.7/logo.png
Thanks you for showing me an example. i am still having trouble, when debuging it i login into the https site with the auth prams, then again in the login page, parses the url file, add my own code step, set branch objects own program, Binary path to wget and add the marco at the end, but everything i try it will not download the file.
 

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
Thanks you for showing me an example. i am still having trouble, when debuging it i login into the https site with the auth prams, then again in the login page, parses the url file, add my own code step, set branch objects own program, Binary path to wget and add the marco at the end, but everything i try it will not download the file.
I haven't tried doing encrypted downloads but my guess is that it will work. To get regular http downloads working inside Zenno, I found the fastest approach was to first get it working outside of ZennoPoster using wget from the command line. Once you've got it working there it should just be a case of just copying the code into the macro.

The only difference seems to be in Zenno you must put the path to wget.exe inside quotes.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)