All Collections
Using Octoparse
Tackle Pagination
Dealing with pagination (with a "Load More" button)
Dealing with pagination (with a "Load More" button)
Updated over a week ago

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.

You may need this example link to follow through:


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?