Many websites use a "Load More" or "Show More" button to load content continuously. Websites very commonly use this technique to create a better user experience.

46.png

Unlike Pagination with a "Next" button, the "Load More" button keeps adding more content onto one web page, making it trickier to scrape. In this article, I will show you how to deal with the "Load More" button in Octoparse.

  1. Use Auto-detect to deal with the "Load More" button

  2. Create a pagination action manually

You may need this example link to follow through:

https://www.capterra.com/search/category?search=CRM%20Software


1. Use Auto-detect to deal with the "Load More" button

  • Start the Auto-detect process, and you'll find the option to Click on a "Load More" button in the Tips Panel.

  • Click Check to see if the Load more button has been located correctly. If not, you can click Edit to choose the right button.

check_and_edit.gif
  • Click Edit to set up the number of clicks, which is how many times you want to click on the Load More button.

2.png
  • Click Create workflow to generate the settings

The workflow should look like the picture below:

mceclip0.png

2. Create a pagination action manually

  • Select the "Load More" button on the web page and choose Loop click single element

  • Set up a proper AJAX timeout (what is AJAX?)

__5.gif

Tips:

1. If you only wish to click the "Load More" button for X times, click the Pagination box, tick "Repeats," and set Repeats to the number X.

113.png

2. If you find that the task gets many duplicates during scraping, you can drag the Loop Item out of the Pagination so that Octoparse will start to scrape after loading all the items.

drag.gif
Did this answer your question?