Automatic Imports

To run imports automatically, you can use one of three methods:

1. You can create a template, and include the tag:

{exp:datagrab:run_saved_import id="2"}

(this will run the import with the id of 2). The import will run when this template is viewed in the browser.

2. You can directly call the URL:

Where n is the action id assigned to DataGrab. This is displayed on the module’s homepage.

3. You can use the ExpressionEngine CLI tool:

php system/ee/eecli.php import:run --import_id=2 --limit=1

To run automatically, you will need to set up a cron to call the command. For more details see: Running imports using cron.

Last updated