24.1.3. File tools

24.1.3.1. Download file

Downloads a file specified using a URL (using for instance http: or file:). In other words you can copy/paste a URL and download the file.

Parameter

Label

Name

Type

Beschreibung

URL

URL

[string]

The URL of the file to download.

File destination

OUTPUT

[string]

Default: [Save to temporary file]

Specification of the file destination. One of:

  • Skip Output

  • Save to a Temporary File

  • Save to File…

The file encoding can also be changed here.

Ausgaben

Label

Name

Type

Beschreibung

File destination

OUTPUT

[string]

The location of the downloaded file

Python code

Algorithm ID: qgis:filedownloader

import processing
processing.run("algorithm_id", {parameter_dictionary})

The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Verarbeitung Algorithmen von der Konsole aus verwenden for details on how to run processing algorithms from the Python console.