Enter text is an action to simulate the behaviour of entering text on a web page. For example, we can input login credentials on the page to scrape the data behind a login. Also, if we have a list of keywords to search on websites, we can use this feature to input the keywords into the search box.

In this tutorial, we'll be learning how to use the Enter text feature to input text(s) in different scenarios:

  1. Enter a single keyword into the text box

  2. Enter multiple keywords into a search box

  3. Enter multiple lists of keywords to different text boxes correspondingly


1. Enter a single keyword into the text box

Entering a text or keyword in Octoparse is easy. With the built-in browser, you can interact with the web page by simply pointing and clicking, just like what you do using any normal browser.

  • Click on the login box on the page and select Enter text in the Tips panel

22.png
  • Input text and then Confirm

2.png

You will see an Enter Text step being created in the workflow

mceclip0.png

2. Enter multiple keywords into a search box

If you have a series of pre-defined and specific text values, you can add them to the "Text list" to create a loop search action. Octoparse will automatically enter every word in the list into the search box, one word at a time.

  • Hover on the workflow and click the + add step button and select Loop

16.png

  • Click Loop Item and switch the Loop Mode to Text List

23.png
  • Click and then input the keywords (one keyword per line) on the pop-up box

  • Confirm and Apply

13.png
  • Click on the search box on the page in the built-in browser and select Enter text

21.png
  • Leave the text box empty and click Confirm to create an Enter text step

10.png
  • Select Use text in the loop to enter the text box then click Apply to save the settings.

11.png
  • Click on the search box on the page and choose Click button

11.png

Go through the workflow step by step, you will find Octoparse can go to the page you need automatically, which means your configuration is successfully set up.

__4.gif

3. Enter multiple lists of keywords to different text boxes correspondingly

If you have multiple lists of keywords and want to input them to different text boxes correspondingly, Octoparse can also help you with that. For example, you want to log in to a website with a different username and password combinations to get different information.

  • Select the first text box

  • Choose Enter text

Select_firstbox.png
  • Select the second text box

  • Click Enter text in bulk

Click_enter_bulk.png
  • Insert the username and password combination. Separate username and password with a ";", and one combination per line

insert_password_username.png

TIP: If you have more than two lists, you can continue to select the third or more text boxes. When inserting the text, just use “;” to separate the three or more texts like string1;string2;string3...

Did this answer your question?