How to download file from link on webpage

  • Автор темы Автор темы busymofo
  • Дата начала Дата начала

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?
 
I downloading start like in adwords? Automkatically?
Or you need to manually save data in ordinary browser?
 
well yes where the download starts automatically
 
c157b386987c5a6ffe7869437cc0db81.png


You can set download folder this way.
If download starts automatically, file will be saved there.
 
  • Спасибо
Реакции: Daikaiser
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.
 
you can first determin file path, then use it in download part and save path in txt file... simple as that ;)
 
that would just be the folder though. how about the actual filename of the file it downloaded?
 
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.
 
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
 
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.
 
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
 
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.
 
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
 
Can't see the image anymore, how can I set the download folder? I have a script that downloads a file automatically.
 
Nevermind, found it:

fQ89MP0.jpg
 
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.
 
Ok, found it, set download path, then get request :)
 
Thanks for this old post I resolved my questions!
 

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