All, Thanks in advance.
Q: How to make 50 Clicks on Load More button for loading additional items on single page?
Then, after some delay, execute the Browser.Navigate Function.
Sequencing Click to Load additional Elements, then, Extraction Logic
Re: Sequencing Click to Load additional Elements, then, Extraction Logic
Note that clicking a button 50 times and then extracting the content involves exact same steps as, in a site that has pages, clicking the next button to turn the pages 50 times, and then extracting from the 51st page.
So you can use Browser.TurnPages to repeatedly click the button (or even better, Browser.TurnPagesAndWait, since the content may take a while to load). Then limit it to 50 pages by wrapping it in a Sequence.Take. And finally, to extract from the last "page" only, wrap that in a Sequence.Last. The whole thing would look like this:
Note that, when typing that out you'd actually do it the other way around: first Sequence.Last, then Sequence.Take, and then Browser.TurnPagesAndWait. Or if you already have a selector called LoadMoreButton you can just copy/paste the whole thing.
So you can use Browser.TurnPages to repeatedly click the button (or even better, Browser.TurnPagesAndWait, since the content may take a while to load). Then limit it to 50 pages by wrapping it in a Sequence.Take. And finally, to extract from the last "page" only, wrap that in a Sequence.Last. The whole thing would look like this:
Code: Select all
Sequence.Last
· Sequence.Take
· 50
· Browser.TurnPagesAndWait
· Select.LoadMoreButton
· 1000
Juan Soldi
The Helium Scraper Team
The Helium Scraper Team
Prime Сasual Dating - Real-life Females
Elevate your dating game with the top site for hassle-free connections.
True Females
Prime casual Dating
True Females
Prime casual Dating