DownloadFile

DownloadFile(string url, string directory,
string filename (optional) : vector

Example of how to download files


Purpose

Downloads a file from its URL. Invaluable when you need to download large numbers of files.

Available arguments to use in the function

DownloadDirectory

The directory where the file is saved. The easiest way is to copy and paste the directory of your choice and SeoTools will convert it to the proper format.

FileName

This optional parameter allows you to specify a custom name of the file. If left blank, SeoTools will use the same name as the file.

In the example above, custom file names were created to make the names shorter and easier to sort. The unique ids of the Instagram post were concatenated with ".jpg". This resulted in a batch of images with corresponding identifiers for each post.


See

Related Functions


Get help with this function in the community →