# Exporters

`secator` exporters allow exporting **reports** at the end of the run.

{% hint style="info" %}
To export **results** in **real-time**, see [drivers](https://docs.freelabz.com/in-depth/concepts/drivers "mention") instead.
{% endhint %}

Available exporters out-of-the-box are:

* **`txt`**: exports results as TXT file.
* **`csv`**: exports results as CSV file.
* **`json`**: exports results as JSON file.
* **`console`**: exports results to console/stdout (similar to default output but as an exporter).
* **`gdrive`**: exports results to Google Drive. Set `addons.gdrive.credentials_path` and `addons.gdrive.drive_parent_folder_id` in your config for this exporter to work.
* **`table`**: prints results as a table in the terminal.

***

## Using exporters

{% tabs %}
{% tab title="CLI" %}
To use exporters from the CLI, use the `--output` or `-o` flag:

```bash
secator x httpx mydomain.com -o txt
secator w host_recon mydomain.com -o gdrive,table
secator s url http://testphp.vulnweb.com -o csv,json
```

{% endtab %}

{% tab title="Python" %}
To use exporters from the library, you can pass the `exporters` kwarg to any runner:

```python
from secator.workflows import host_recon

host = 'mydomain.com'
workflow = host_recon(host, exporters=['csv', 'json'])
workflow.run()
```

{% endtab %}
{% endtabs %}

***
