Skip to content
Batches

Batches: collect data on a whole list, now or every day

A lobstr.io batch runs a scraper on your list of inputs, its tasks, by hand or on a schedule, and delivers the results. Create one, add its tasks, launch it, follow its runs and its slots, get only new results.

A batch runs a scraper on your list of inputs (search URLs, places, profiles, keywords) and collects the results for you, by hand or on a schedule. No code. In the API v1, a batch is called a squid.

Create a batch

  1. Click New batch

    In the app, click Batches in the sidebar, then New batch.

    New batch on the Batches page
  2. Pick a scraper

    Search a site or the data you need, and click the scraper. The batch opens on its settings.

    Picking the Google Maps Leads Scraper in the New batch window
  3. Add your tasks

    In the Tasks section, add your inputs: here a category and a city, searched across the whole area. See Tasks for lists and files.

    Tasks By area: a category, an area, then Add 1 task
  4. Choose its settings

    In Settings, tick the extra data you want and the results to keep, then click Save and launch, or Save to launch it later.

    Extra data and Which results to keep in a batch's settings
  5. Check the estimate and launch

    Ready to launch? estimates the tasks, the results, the credits and the time. Click Launch now.

    The Ready to launch window with Launch now

To rename a batch, click its name at the top of its settings. Names are unique.

Tasks

A task is one input of a batch: a URL to visit, a query to search, a username to look up, or a set of parameters. A batch holds up to 10,000 tasks, and each run processes all of them.

What a task looks like

The accepted input type depends on the batch. 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 batches like Google Maps Leads Scraper).

Some batches only accept one shape. Others, like Google Maps Leads Scraper, accept both URLs and structured params. The Tasks section of the batch's settings always shows what that batch expects.

How to add tasks

In the batch's settings, the Tasks section takes your inputs in one of its modes, depending on the scraper: By URL, By location (or By keyword), or By area for a whole country, region or city on Google Maps.

One at a time

Paste a URL, a query or a username in the field and click Add. Good for a few tasks.

Paste a URL, then Add, in the Tasks section

From a file

For long lists, up to 10,000 tasks:

  1. Click Upload file

    In the Tasks section, click Upload file (or Upload).

    Upload file in the Tasks section
  2. Download the template and fill it

    The window says which column your file needs, such as url. Click Template for a file with that column, then put one task per row under it: a .csv, .tsv or .txt file of up to 10 MB.

    The Upload tasks window: the column it needs, and Template
  3. Drop your file and import it

    Drop the file in the window, or browse for it, then click Import. The import shows its progress in the Tasks section.

    Drop the file, then Import

The column's name must match exactly, capitals included. With a wrong header, nothing is imported.

By location or by area

On scrapers that take structured inputs, such as Google Maps, pick them in the form: a category and a city (By location), or a category across a whole country, region or city (By area), as in step 3 above. Every combination becomes one task.

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, so overlapping files don't scrape twice.
  • Validation: tasks that don't match the batch's expected input are skipped. If you paste a URL into a batch that expects a username, that task won't be added.

If an upload brings fewer tasks than your file has rows, 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 file The column's name doesn't match what the batch expects, character for character Copy it from the Upload tasks window, or start from its template
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 It is over 10 MB Split it into smaller files and upload them one after another: tasks add up
Some rows added, others silently skipped Those rows were duplicates, or the wrong input type for this batch Check the format the batch expects: a URL won't be accepted where a username is required
The count stops growing The batch has reached 10,000 tasks Split the work across several batches

A run needs at least one task. Launching a batch with an empty task list won't start one: add tasks first, then launch.

The task list

The Tasks section lists the batch's tasks, 10 per page. You can:

  • Search tasks to find one.
  • Download the list as a CSV.
  • Tick tasks and remove them.
  • Remove all: the batch keeps its settings, schedule and results, but every task goes, done or not. There is no undo.

How tasks work with runs

Every run processes every task in the list again. There's no queue that drains over time. If your batch has 500 tasks, each launch scrapes all 500, not only new ones.

That way, a schedule brings fresh data for the same inputs without adding them again. 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 Remove all and start over).
  • For a weekly Google Maps refresh, for example, leave the list alone and run it every day, or every week.

Each task's results in a run

A run's Tasks tab shows what each task brought:

Column What it shows
Task The input: URL, query, username or parameters
Status Where the task is
Results Results it collected
Pages Pages the scraper went through
Ended When it finished
Reason Why it ended

When one task brings 0 results and the others hundreds, its Reason usually says why. A task that failed can be retried from its row.

Run it every day

In the Schedule section, pick Repeat instead of Manual: every few minutes, hours, days, weeks, or a day of the month, in the time zone you choose. Next runs shows when it will launch. Repeat is for paid plans.

Its runs

Each launch makes a run, listed on the batch's page with its results, credits and status:

Status What it means
Running Collecting results
Paused Waiting (credits, an account's limit, cookies to refresh), then it picks up where it stopped. Hover it for the reason
Stopped You stopped it; its results so far are kept
Done Finished, ready to download
A reason, such as Out of credits It ended on a problem: see Why a run stopped
  • Stop run stops a run now.
  • Resume restarts a paused run now.
  • Continue run takes a stopped run up again, if it is the batch's latest: done tasks stay done, the others run.

Open a run for its Results, Tasks, Credits (where they went) and Logs.

Slots

Your plan's slots set how many scrapers your batches run at the same time: 1 on Free, 2 on Starter, 10 on Pro, 50 on Team. A batch at rest uses none, so you can create as many as you need. When every slot is busy, a new run is refused and nothing is queued: you decide what runs.

Operations count their calls at a time apart, with the same number: see Limits in the API docs.

How slots are counted

A batch's run takes its slots (how many scrapers work on it in parallel) from the moment it starts until its scrapers finish. Once done, paused or exporting, its slots are free again.

On Pro (10 slots), with 3 runs in progress:

Run in progress Slots
Batch A 1
Batch B 4
Batch C 1
In use 6 of 10

Batches D, E and F, created but not running, use nothing.

A batch's Slots are under Advanced settings, at the bottom of its Settings section:

  • Auto, on the scrapers that offer it (Google Maps Leads Scraper for now), where new batches start: the run takes its share of your plan's slots, one per task left at most, and always leaves one free for another launch. Alone on Pro, it goes up to 9. It needs one free slot to start, grows as other runs finish, and gives slots back when another run on Auto starts.
  • Manual: the number you set; batches created before Auto keep theirs. More slots make a run faster, and take more of your plan's slots while it runs.
Advanced settings, then Slots: Auto or Manual

Three caps on a batch's slots

  • Your plan's slots: a batch can't use more than your plan has.
  • The scraper's own cap: each scraper runs a number of slots at most, 20 unless it says fewer.
  • Your connected accounts: a batch that needs an account (Sales Navigator, Leboncoin, X, Facebook) uses one account per scraper. With 5 accounts picked for the batch, 5 scrapers work and the other slots wait. Pick more accounts in its settings, or connect more to go further.

How many batches you can create

Up to 100 per slot: 100 on Free, 200 on Starter, 1,000 on Pro, 5,000 on Team.

When every slot is busy

Launching a batch while your runs use every slot is refused. Wait for a run to finish, stop one (its results so far are kept), or upgrade.

A schedule follows the same rule. If it fires while every slot is in use, that run stops with slots_limit_exceeded. Spread your schedules so they don't overlap.

More slots

Above Team, custom plans have more slots: talk to us.

Get only new results

Each run processes every task again, so results from earlier runs can come back, and are billed again. Under Advanced settings, Skip duplicates set to This batch (or All my batches) skips what you already have, and skipped results are not billed. Many scrapers also have Newer than: only results from the last hours, days or weeks.

Get an email after each run

In the Delivery section, Email me sends you an email When a run succeeds or When a run fails.

Email me in the Delivery section: Never, When a run succeeds, When a run fails

To send the results themselves to an inbox, a sheet or a bucket, see Download results.

Results are kept

7 days on Free, 45 days on Starter and Pro, 90 days on Team. Download them before, or send them to Google Sheets or Amazon S3.