Download a text file

JIMBOB

Пользователь
Регистрация
07.04.2022
Сообщения
35
Благодарностей
0
Баллы
6
Hello,

I'm trying to download a text file from a website, then write that text file to a directory.

The text file will need to overwrite a text file already in the same directory (and use the same file name as the file in the directory).

The link to the text file on the website is not static.

When I click the download icon, it records a click event and I can see it is downloaded in the projectmaker but there isn't anything in the log and I'm not sure where it saves to or how to have it overwrite a specific file in a specific directory.

Any help would be appreciated.

Thank you
 

JIMBOB

Пользователь
Регистрация
07.04.2022
Сообщения
35
Благодарностей
0
Баллы
6
Okay, so I've managed to parse the dynamic link into a variable.

I've then managed to use a HTTP-request to download the textfile.

But the text file ends up in: EN\ZennoPoster Standard V7\7.5.0.0\Progs\Trash\

I can't see an option in HTTP-request to choose where to save the file?

Do I need to go about it a different way to do what I want? Can I write the file to a list and then save it?

Please see below.

Parse Link:

90707



Put Request

90708



Location of the file:

90709
 

JIMBOB

Пользователь
Регистрация
07.04.2022
Сообщения
35
Благодарностей
0
Баллы
6
Nevermind. I worked it out.

Anyone wondering, I Parsed the dynamic link and then used a Get request to download the data and put the data into a variable.

From there I added the data from the variable into a Textfile.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 480
Благодарностей
5 917
Баллы
113
Add action>Browser settings>Download directory - there you can specify the directory which the files will be downloaded to, not matter via browser or get request
 
  • Спасибо
Реакции: JIMBOB

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