Split by character step

Use this step to pull a piece of text out of a larger block, such as scraped HTML. Enter the character or word to split on, and the data is cut into columns at every occurrence, output as the [split-by-character] token. For example, scrape a page's HTML with the Get data from bot's current page step's Page HTML option, then split on the text just before an image URL to isolate it. To cut text out of the middle, use two Split steps: one to drop what comes before, one to drop what comes after.

You can use this step to:

  • Extract links from scraped HTML
  • Get image URLs from scraped HTML
  • Get specific text from scraped data

The Split by character step with its Character box and DATA Insert Data dropdown, outputting the split-by-character token

How to configure the Split by character step


Character

Enter the character or word to split the data on. Enter \n to split on line breaks.

DATA

Click Insert Data and select the data to split.

Use two Split steps


To extract text that has other text before and after it, add a second Split step and set its DATA to the first step's [split-by-character] token with Insert Data: the first step cuts off what comes before, the second cuts off what comes after.

Guides that use this step