Skip to main content

Export data to a database (automatic)

Updated over 2 months ago

This guide will walk you through how to manually and automatically export scraped data from Octoparse to your database (MySQL, SQL Server, PostgreSQL). We’ll also introduce Octoparse’s Auto-Export Tool (Database only).

Prerequisites

Before getting started, ensure you have:

  • A task with extracted data results (Auto-export only supports Cloud data)

  • A configured database table with fields to receive the data

Note:

  • Auto-export currently supports MySQL, SQL Server, PostgreSQL, and Google Sheets.

  • For other databases or platforms (e.g., custom websites), consider using Octoparse Open API or Zapier integration.


1. Manual Export to Database

This example uses MySQL, but the process is similar for other supported databases.

IP Whitelisting Note:
If your database requires IP whitelisting, ensure your device IP is allowed, as exports run locally from your machine.

Steps:

  1. View Cloud Data for your target task.

  2. Click Export Data > Select your database type > OK.

  3. Enter your database connection details:

    • (Enable Encrypt connection for Azure databases.)

  4. Click Test Connection to verify access.

    • If successful, you’ll see a "Connected" confirmation.

      13.png
  5. Map Data Fields:

    • Select an existing table from the Data Table dropdown.

    • Match source fields (extracted data) to target fields (database columns).

    • (Optional) Set a primary key (if selected, duplicate keys will overwrite existing records).

  6. Click Export to complete the process.


2. Automatic Export to Database

To enable scheduled exports, configure the auto-export settings:

  1. Under Automatic Export, click Set.

  2. Configure the export interval (e.g., every 5 minutes).

  3. Click Confirm to save.

Saving Database Settings for Reuse

After the first setup, you can save your database configuration for future use:

  • Enter a name for the settings before exporting.

  • Next time, simply select the saved profile to skip reconfiguration.


3. Using the Database Auto-Export Tool

Once auto-export is enabled, the Auto-Export Tool will launch, displaying all scheduled export details.

Key Features:

  • Start/Stop/Delete scheduled exports.

  • View error logs for troubleshooting.

Important:

  • The tool must remain open for exports to continue.

  • Closing the tool or shutting down your computer stops the export process.

Tips:

✔ Access the tool anytime via Tools in the side navigation.
✔ Exports begin immediately after clicking Start.
✔ Only new/unexported data is transferred in each scheduled run.

2. The export will start immediately when you click the Start button.

3. Automatic export to the database only exports unexported data every time.

Did this answer your question?