Language: EN ES

KpsLauncher – Task Launcher for Webcrawling

The Launcher is a small tool for running tasks (commands or URLs) manually, on a schedule (cron), or chained together (task dependencies). It is oriented toward web crawling, allowing multiple tasks to run in a coordinated way. For example, if you create a PHP script for web crawling, you can execute it either from the command line or through a URL using a web server such as Apache

1. Main screen

When you open the program you will see three main areas:

2. Creating and editing tasks

2.1 Opening the task editor

  1. In the top menu, go to “Tasks > Task editor”.
  2. A window will open where you can:
    • Create new task.
    • Modify existing ones.
    • Save the configuration to tasks.json.

2.2 Basic fields of a task

2.3 Task steps

Each task can have one or more steps that are executed in order:

2.4 Available macros

You can use several macros in run and params:

2.5 Scheduling (cron)

In the Cron tab you can define when a task is launched automatically:

2.6 Task dependencies

In the Dependencies tab you can define which tasks must have finished successfully before executing another:

Note: when you manually launch a task from the toolbar, if the dependencies are not satisfied the program will ask whether you want to bypass them and execute anyway.

3. Running tasks

3.1 From the toolbar

3.2 From the task list

4. Logs, errors and debugging

4.1 “Logs” tab

4.2 “Errors” tab and errors.log file

4.3 Task context menu (debug/log)

In the Tasks tab, right-click on one or more selected tasks:

These changes are temporary (only for already created tasks); they are not stored in tasks.json.

5. Notifications and auto-start

6. Minimize to tray

7. Example JSON configuration file

Task configuration is stored in the tasks.json file located in the same folder as the executable. Normally you do not need to edit this file by hand: the application includes a built-in Task editor (menu Tasks > Task editor) which generates and updates the JSON for you.

A simplified example of tasks.json could be:

{
  "tasks": [
    {
      "name": "ping",
      "icon": "assets\ping.png",
      "color": "#00AAAA",
      "logging": true,
      "log": "4",
      "maxinstances": 1,
      "onfinish": "stop",
      "restartdelay": 0,
      "run": [
        {
          "type": "cmd",
          "run": "ping 1.1.1.1",
          "params": ["-n 10"]
        },
        {
          "type": "cmd",
          "run": "ping 8.8.8.8",
          "params": ["-n 10"]
        }
      ]
    }
  ]
}

Meaning of the most important fields:

Important: although you can edit tasks.json manually, the recommended way to work is always through the built-in Task editor. When you click “Save”, the editor generates or updates this file automatically.