# Save Lists

**Example: Save list of profiles from LinkedIn search results**

In this example, let's assume we want to save 10 profiles from a page.

Here is the workflow set-up:

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2F4IE8m74OHtCmBCLU4YCj%2FScreenshot%202023-11-22%20at%2017.46.04.png?alt=media&#x26;token=df4018e6-4a8e-430f-b33a-4f9436d81c19" alt=""><figcaption></figcaption></figure>

*Open Link* opens the page where the list of profiles is displayed. Note: You should add a url that already contains all necessary search filters, similar to what you see on the screenshot below.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Foc9No5Y6EBdErf4glTUQ%2FScreenshot%202023-11-22%20at%2017.47.55.png?alt=media&#x26;token=5e54ba60-b4ac-44f5-b6d2-f745dd7a3654" alt=""><figcaption></figcaption></figure>

The loop is set at 10 to be able to save 10 results. The loop is set up in the *Start Repeat* building block.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FnxkGq49PCC1CtEtu0mR6%2FScreenshot%202023-11-22%20at%2017.49.07.png?alt=media&#x26;token=4282f91f-eed4-45ee-bbe9-494d18940c6a" alt=""><figcaption></figcaption></figure>

*Save Web Element* building block saves profile links like so:

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FQNLkWFODKxDb82HFpcWz%2FScreenshot%202023-11-22%20at%2017.50.20.png?alt=media&#x26;token=d0eca1c3-2dd4-46c1-bc0b-003758091f12" alt=""><figcaption></figcaption></figure>

**IMPORTANT**: If you pay close attention to the screenshot above, you will see that the selector contains <mark style="background-color:red;">**{loop\_index}**</mark>. Please read the following section to learn how to add the loop index to your selector (CSS or XPath): [#how-to-use-loop-index-syntax-to-save-lists-of-public-data](https://docs.zerowork.io/using-zerowork/start-repeat/standard-loop#how-to-use-loop-index-syntax-to-save-lists-of-public-data "mention").

### FAQ

#### Data is always appended. But I want the new data to overwrite the old data on every run.

Use [delete-data](https://docs.zerowork.io/using-zerowork/using-building-blocks/delete-data "mention") building block before you start your loop.

#### How do I get rid of duplicates in my table?

Use [remove-duplicates](https://docs.zerowork.io/using-zerowork/using-building-blocks/remove-duplicates "mention") building block after your loop finished saving all the results.

#### How to save paginated results?

Check [nested-loops-handle-pagination](https://docs.zerowork.io/using-zerowork/using-building-blocks/start-repeat/nested-loops-handle-pagination "mention").

#### How to handle scrolling?

Scrolling is handled automatically by your TaskBot.

In-built auto-scrolling logic might fail in some cases. You may need to set up some additional logic by using space or arrow down with a [keyboard-action](https://docs.zerowork.io/using-zerowork/using-building-blocks/keyboard-action "mention") block. Contact support to report the website where scrolling is not triggered automatically ([support](https://docs.zerowork.io/support "mention")).

### Video Tutorial

{% embed url="<https://youtu.be/QNdzT5oIs6g?si=rIcZd5UK6OJ4o-Xs>" %}
