> ## Documentation Index
> Fetch the complete documentation index at: https://help.lobstr.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Tasks: the inputs that tell a Squid what to scrape

> Tasks are the inputs for a lobstr.io Squid — URLs, queries, usernames, or structured params. Learn how tasks are added, deduplicated, and re-processed every run.

A **task** is a single unit of input for a [Squid](https://help.lobstr.io/core-concepts/squids.md). It's what you hand the scraper so it knows *what* to scrape — a URL to visit, a query to search, a username to look up, or a set of structured parameters. Each Squid can hold up to **10,000 tasks**, and every run you launch processes all of them.

## What a task looks like

The accepted input type depends on the Squid. Common shapes:

* **URL** — a link to a page, list, or profile (e.g. `https://www.realtor.com/realestateandhomes-search/California/pg-5`).
* **Plain text query** — a search term (e.g. `restaurant`).
* **Username** — a handle or ID (e.g. a Twitter handle or YouTube channel).
* **Structured parameters** — fields like Category, Country, Region, District, City (used by Squids like Google Maps Leads Scraper).

Some Squids only accept one shape. Others — like **Google Maps Leads Scraper** — accept both URLs and structured params. The task input form in the Squid's **Add tasks** step always shows you what that specific Squid expects.

## How to add tasks

From the Squid's **Add tasks** step, you have three ways to load tasks:

### 1. Type or paste a single task

[https://www.loom.com/embed/114eeb47fa2546b8a2e73bc4886807e5](https://www.loom.com/embed/114eeb47fa2546b8a2e73bc4886807e5)

Paste a URL (or query / username) in the input field and click **Add**. The task appears in the list below. You can add many individual tasks this way — good for small, ad-hoc lists.

### 2. Upload a CSV

When you need to run a Squid against many URLs or keywords, adding them one at a time is impractical. Upload a CSV with one task per row instead — ideal when you have 100 or more tasks to process (up to the 10,000-task limit).

**1. Identify the column label**

Each Squid expects a specific column header in your CSV file. To find it, open your Squid and click the **settings icon**.

![Click the settings icon on the Squid page](https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-upload-a-list-of-tasks/capture-decran-2024-01-12-a-16_khjzh1.png?fit=max\&auto=format\&n=w79jonrYGdq1PCcO\&q=85\&s=8a85c09089d74e5c8fb39255c9cd7419)

Then hover over the **Upload file** button — the expected column label is displayed there.

![Hover over Upload file to identify the column label](https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-upload-a-list-of-tasks/capture-decran-2024-01-12-a-16_86qpos.png?fit=max\&auto=format\&n=w79jonrYGdq1PCcO\&q=85\&s=bab0e08deabc89cf15fd3e29d7977023)

In this example, for [Google Maps Export Reviews](https://www.lobstr.io/store/google-maps-iter-reviews), the label is `url`. Note it down — you'll need it for the next step.

**2. Build your CSV file**

Create a CSV file with:

* The label from Step 1 in the first cell (e.g. `url`).
* One task per row below it.

![Build your CSV file with the label as header and tasks below](https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-upload-a-list-of-tasks/capture-decran-2024-01-12-a-16_217oj9.png?fit=max\&auto=format\&n=w79jonrYGdq1PCcO\&q=85\&s=338b8e5c2eaa336fd6a3bbc146c65c7a)

Save the file with a `.csv` extension — for example, `tasksDemo.csv`.

**3. Upload the CSV**

Click **Upload file** on your Squid page and select the file you just created.

![Upload the CSV file to the Squid](https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-upload-a-list-of-tasks/lobstr-12-january-2024_1b9jr24.gif?s=094a8fd76fd411cf83424222b85d0518)

lobstr.io imports your tasks and shows a confirmation — e.g. **"19 tasks imported."** Click **Launch** to start the run.

> [!NOTE]
>
> The column header in your CSV must exactly match what the Squid expects, including capitalization. If the header is wrong, no tasks will be imported — always verify the label in Step 1 before building your file.

### 3. Use params

For Squids that support structured input, toggle **Use params** to fill in fields like Category, Country, Region, District, and City. Every combination you submit becomes one task.

![Adding tasks using structured params — Category, Country, Region, District, City](https://mintcdn.com/lobstrio-8dcae32c/ziDRVvvgoKBAJQZO/images/core-concepts/tasks/using_parameters_google_leads_scraper.png?fit=max\&auto=format\&n=ziDRVvvgoKBAJQZO\&q=85\&s=c7a6ce738c8b94b106791839decf6007)

See the [Scrape a country (Google Maps)](https://help.lobstr.io/guides/google-maps/scrape-country.md) guide for a concrete example of the params flow.

## Deduplication and validation

Two things happen automatically when you add tasks:

* **Deduplication** — if the same task is already in the list, it's not added again. This prevents accidental double-processing when you upload overlapping CSVs.
* **Validation** — tasks that don't match the Squid's expected input format are skipped. If you paste a URL into a Squid that expects a username, that task won't be added.

> [!TIP]
>
> If a CSV upload reports fewer tasks than you expected (e.g. "18 tasks imported" from a 20-row file), the missing ones were either duplicates already in the list or invalid format.

### When tasks won't add at all

Fewer tasks than expected is normal. **Zero** tasks added, or an upload that's rejected outright, usually comes down to one of these:

| What you're seeing | Cause | Fix |
| - | - | - |
| Nothing imported from a valid-looking CSV | The column header doesn't match what the Squid expects, character for character | Copy the label from the Squid's own input field into the first cell |
| The file is rejected before any import happens | lobstr.io couldn't read the file's character encoding | Re-save as **CSV UTF-8** from Excel, Google Sheets, or your editor |
| A large file is rejected | The upload exceeds the file size limit | Split it into several smaller CSVs and upload them one after another — tasks accumulate across uploads |
| Some rows added, others silently skipped | Those rows were duplicates, or the wrong input type for this Squid | Check the format the Squid expects — a URL won't be accepted where a username is required |
| The task counter stops climbing | You've hit the **10,000 task** ceiling for this Squid | Split the work across more than one Squid |

> [!NOTE]
>
> A run needs at least one task. Launching a Squid with an empty task list won't start one — add tasks first, then launch.

## The task list

Once added, tasks appear in a list with a **task counter badge** showing the current count. From the list toolbar you can:

* **Upload file** — import a CSV of tasks.
* **Download** — export the current task list as a CSV.
* **Search** — find a specific task by keyword.
* **Empty tasks** — wipes **the entire list**.

## Delete tasks or empty the task list

[https://www.loom.com/embed/929394124c33478d9fa83bb0dbd507c3](https://www.loom.com/embed/929394124c33478d9fa83bb0dbd507c3)

You have two ways to remove tasks:

* **Delete selected tasks** — tick the checkbox next to a task (or multiple tasks) and click **Delete**. Only the selected tasks are removed; the rest of the list stays intact.
* **Empty the entire list** — click **Empty tasks** to clear every task in the Squid in one action.

> [!WARNING]
>
> **Empty tasks** deletes every task in the Squid — both already-processed and unprocessed. There's no undo.

## How tasks work with runs

This is the most important thing to understand about tasks:

> [!NOTE]
>
> **Every run re-processes every task in the list.** There's no queue that drains over time. If your Squid has 500 tasks, each launch scrapes all 500 — not only "new" ones.

This model is intentional — it lets you scrape fresh, up-to-date data on a schedule without manually re-adding tasks. It also means:

* To scrape something **new**, add new tasks to the list before the next launch.
* Tasks you add **while a run is in progress join that run**: it checks the list again each time a scraper finishes a task. If the run has already finished, they wait for the next launch.
* To **stop** scraping certain tasks, remove them from the list (or click **Empty tasks** and start over).
* If you want every run to pull fresh data for the same inputs (e.g. a weekly Google Maps refresh), just leave the list alone and [schedule the Squid](https://help.lobstr.io/core-concepts/scheduling.md).

The Squid header reflects this with live counters during a run:

* **Tasks done** — how many tasks the current run has finished.
* **Remaining tasks** — how many are still pending in the active run.

Both reset to `0 / total` at the start of the next run.

## Per-task results inside a run

Every run's detail page has a **Tasks** tab showing what happened to each individual task:

![Tasks tab inside a run detail page — one row per task with result counts and done reason](https://mintcdn.com/lobstrio-8dcae32c/ziDRVvvgoKBAJQZO/images/core-concepts/tasks/results_per_task_in_run.gif?s=bc704618e85c326fa60699316a460d9e)

For each task:

* **URL** (or query / username / params) — the task input.
* **Started At** / **Ended At** — when the scraper worked on this specific task.
* **Total Results** — rows collected for this task.
* **Last Result** — final item index written to the output for this task.
* **Total Pages** — how many paginated pages the scraper walked for this task.
* **Done Reason** — why processing of this task ended.

This tab is useful for diagnosing uneven runs — if one task collected 0 results while others collected hundreds, the Done Reason column usually tells you why.

## Related

* [Runs](https://help.lobstr.io/core-concepts/runs.md) — how a run consumes the task list and produces results
* [Squids](https://help.lobstr.io/core-concepts/squids.md) — the configuration that owns the task list


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.