> For the complete documentation index, see [llms.txt](https://help.listly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.listly.io/support/ecommerce-review-scraping/how-to-use-open-codes.md).

# How to Use Open Codes

{% stepper %}
{% step %}

### Go to the page where you want to collect reviews

Open the **product detail page** on your commerce site, then find the review section.

<figure><img src="/files/NJfgaN8rkdHzKIrKqaQ2" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Open Developer Tools

Use the shortcut below to open the **Developer Tools** (DevTools) window. \
**Windows**: `Ctrl + Shift + I`\
**Mac**: `Option + Command + I`

<figure><img src="/files/DkHNNWQ34nYESxZGqxzf" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Switch to the Console tab

At the top of the DevTools window, click the **Console tab**.

<figure><img src="/files/zbhJKC4RsIayKpPThnRs" alt=""><figcaption></figcaption></figure>

{% endstep %}

{% step %}

### Copy the code from GitHub

On the E-commerce Review Scraping page, find your site in the script list and open its GitHub page, then copy the code.

<figure><img src="/files/c68yvkQYA5uIMK3xMsAp" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Paste the code into the Console

Paste the copied code into the Console. You can set `MAX_PAGE_COUNT` to any number you like.\
\&#xNAN;*Example: `const MAX_PAGE_COUNT = 50;` → collects up to 50 pages of reviews*

<figure><img src="/files/YBvzBWCUGXocTg4585Zo" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/t2OZyAxwoT7Artx1NB3f" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Run the code

Press `Enter` , and review scraping starts automatically in your browser. **A small progress box appears** at the bottom of the page — don't close the page until it completes.&#x20;

Note: You can **minimize the window**, but **closing it will stop the process**.

<figure><img src="/files/ApRy7yeP347OqvrvRO4H" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Open the extension and extract with Parts

Once the script finishes, open the **Listly extension**, click **Parts**, and select the collection box at the bottom of the browser to extract the data.

<figure><img src="/files/n8fuRhI4eq74qZtpHLmi" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Check the results and export your file

You'll see every review collected at once up to the number of pages you set. Export it to a file and you're good to go!

<figure><img src="/files/1N35aXNfyQlZchADBiH1" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.listly.io/support/ecommerce-review-scraping/how-to-use-open-codes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
