How to download file from link on webpage

busymofo

Client
Регистрация
25.08.2012
Сообщения
26
Благодарностей
0
Баллы
0
I want to downlooad the csv file that is generated from ahrefs report. Is there a way to do that?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 714
Баллы
113
I downloading start like in adwords? Automkatically?
Or you need to manually save data in ordinary browser?
 

busymofo

Client
Регистрация
25.08.2012
Сообщения
26
Благодарностей
0
Баллы
0
well yes where the download starts automatically
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 714
Баллы
113


You can set download folder this way.
If download starts automatically, file will be saved there.
 
  • Спасибо
Реакции: Daikaiser

joe009

Client
Регистрация
08.07.2012
Сообщения
32
Благодарностей
1
Баллы
0
Nice using that now.

But is there a way of getting the path / filename for the downloaded file? Im stuck there, i wanted to write it to a text file.
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
you can first determin file path, then use it in download part and save path in txt file... simple as that ;-)
 

joe009

Client
Регистрация
08.07.2012
Сообщения
32
Благодарностей
1
Баллы
0
that would just be the folder though. how about the actual filename of the file it downloaded?
 

joe009

Client
Регистрация
08.07.2012
Сообщения
32
Благодарностей
1
Баллы
0
im still stuck on this?? No way to get the filename of a file where the download starts automatically?
The filename is not in the href that is clicked to download it.
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
after you have saved file, you can get full file path again if needed and just regex it so you are left with file name only...

or use directories and get files to list
 

joe009

Client
Регистрация
08.07.2012
Сообщения
32
Благодарностей
1
Баллы
0
thanks for the reply but sorry i dont really understand :confused:

Just looked again now and how exactly would I get the full file path of the download in to a variable? I cant see a way.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 714
Баллы
113
If download link doesn't have full name of a file (maybe redirect) you can use directory processing and action - gel a list of files. And check what files do you have in your download dir.

For setting directory for downloads you can use browser - settings - download action
 

joe009

Client
Регистрация
08.07.2012
Сообщения
32
Благодарностей
1
Баллы
0
ok I see i think So I need to get file list of directory before the file downloads and then again after and try and find the difference between the lists somehow. Might be easier then i think to make some simple vb code or something that runs after the template.
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
no man, you just need for example to ad it in some list, and set the number for where you want it placed in list. Like for example if you put it in first place, you set number 0. After that you can use just get first line from list...

Ading to list and get line... all is done with list processing
 

V Munich

Пользователь
Регистрация
20.02.2014
Сообщения
85
Благодарностей
3
Баллы
8
Can't see the image anymore, how can I set the download folder? I have a script that downloads a file automatically.
 

V Munich

Пользователь
Регистрация
20.02.2014
Сообщения
85
Благодарностей
3
Баллы
8
Nevermind, found it:

 

qlwik

Client
Регистрация
03.04.2013
Сообщения
207
Благодарностей
5
Баллы
18
Hi, I will add my question here:
I want download pdf file from some www, i have http://site.com/file.pdf file, how can I save it to my pc?
There is no automatically download.
 

qlwik

Client
Регистрация
03.04.2013
Сообщения
207
Благодарностей
5
Баллы
18
Ok, found it, set download path, then get request :-)
 

mr.boss

Новичок
Регистрация
22.10.2020
Сообщения
9
Благодарностей
1
Баллы
3
Thanks for this old post I resolved my questions!
 

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