Wichtig

Übersetzen ist eine Gemeinschaftsleistung - Sie können mitmachen <https://qgis.org/en/site/getinvolved/translate.html#becoming-a-translator>`_. Diese Seite ist aktuell zu 44.23% übersetzt.

28.1.4. File tools

28.1.4.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

Basic parameters

Bezeichnung

Name

Typ

Beschreibung

URL

URL

[string]

The URL of the file to download.

File destination

Optional

OUTPUT

[string]

Default: [Save to temporary file]

Specification of the file destination. One of:

  • Skip Output

  • Save to a Temporary File

  • Save to File…

Advanced parameters

Bezeichnung

Name

Typ

Beschreibung

Method

METHOD

[enumeration]

Default: 0

The HTTP method to use for the request. Options are:

  • 0 — GET

  • 1 — POST

Data

Optional

DATA

[string]

The data to add in the body if the request is a POST.

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

File destination

OUTPUT

[string]

The location of the downloaded file

Pythoncode

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.