Settings - ActionScript

What is Action Script?

Action Script is a feature that replays keyboard/mouse actions needed right before extraction to get the web data you want. It's especially useful in situations like these where you need to click buttons multiple times on a web page to access specific information:

1

When you need to click buttons multiple times to get the info you want, and repeat the process

'Click → wait for input field → enter zip code → click confirm button → wait for new page to load' repeated

2

When you want to extract daily information that only appears after clicking a specific button

Select option value → click search button


How to Use

Save the JavaScript code that defines these actions in the Action Script field. Once the code is configured, the actions will automatically execute each time you re-extract.

Quick Start

➡️ Extract data ➡️ Go to DATABOARD ➡️ Click settings icon ➡️ Enter JavaScript code in Action Script ➡️ Save ➡️ Re-extract


Understanding Action Script through examples

1

When you need to click buttons multiple times to get the info you want, and repeat the process

Example 1

This is an actual case from a Korean user. It configures shipping address changes in a shopping mall. Multiple actions are needed: click → wait for input field → enter zip code → click confirm button → wait for new page to load, etc. Since product details (price, options, etc.) also change depending on the shipping address, these actions need to be applied to all products being collected. LISTLY TEAM wrote the code below and provided it to the user, who just needed to paste it into group settings → action script to apply it all at once.

Example 2

This is an actual case from a Korean user. To monitor real-time exchange rate information, they enter the exchange amount → select country to collect the final amount. The Action Script used here is a bit different. Using a variable called custom_html, they directly selected and configured the information to extract, setting it up to extract exactly the desired information as shown in the third image.

2

When you want to extract daily information that only appears after clicking a specific button

Example 3

This is an actual case from an international user. To get search results for the last 2 months on a Norwegian court site, they needed to select an option value (2 mnd. fremover) and click the search button (Søk). Once search results appear, extract with LISTLY Whole, and they're automating this work with LISTLY to collect data daily.

You can define this in Settings → Action Script with JavaScript code. Since it's difficult for general users to set up directly, LISTLY TEAM helps with the configuration.

For developers, you can test your own code by running it in browser developer tools → Console on the extraction target page to visually confirm if it works properly.

Example 4

This is an actual case from a Korean user. The user wanted to extract content that appears when clicking the "Skincare" category as shown in the right image, but the default view when first accessing the page shows "All" category products as shown in the left image.

Initial screen
Screen user wants to extract

In this case too, save the JavaScript code defining those actions in the Action Script. Once the code is configured, those actions will automatically execute each time you re-extract.

Last updated

Was this helpful?