website does not have pagination just long scroll bar

84 views
Skip to first unread message

scraper

unread,
Jul 27, 2022, 12:40:23 PM7/27/22
to Web Scraping
The site I want to scrape has a scroll bar including over 200 companies listed. To get to the email address each one has to be selected then the next page has the email address. 

As I understand it you select all contacts on the main page then setup a pagination link for it to continue the process automatically on subsequent pages. 

In this case the site has no pages just a long scroll bar that shows all results 1-200. 

Is there a way to get the system to automatically select the full list without selecting all 200?

Andrew11

unread,
Jul 27, 2022, 12:42:54 PM7/27/22
to Web Scraping
It sounds like this tutorial page might give you what you need:


If you still have problems post the URL to the index page and I'll try to figure it out.

James Cooper

unread,
Jul 27, 2022, 12:55:40 PM7/27/22
to Web Scraping
Hello and thank you for reaching out to us! Can you provide the URL of the page you are trying to scrape, or the email address your Parsehub account is registered with? Different websites will have different solutions. For example, you can collect all of the results for some websites by simply inserting a 'Scroll' command at the beginning of a template and instructing it to repeat a few times and that works fine, however, other websites will remove elements from the page as soon as you are not looking at them, which would require a different approach. Once I know more I would be happy to investigate!

James
Parsehub

scraper

unread,
Jul 27, 2022, 1:35:25 PM7/27/22
to Web Scraping

I've private messaged you the links and the account

scraper

unread,
Jul 27, 2022, 3:13:29 PM7/27/22
to Web Scraping
Here is the link, https://www.homehardware.ca/en/store-locator the infinite scroll seems like it's the one I need at https://help.parsehub.com/hc/en-us/articles/218187257-Infinite-Scroll.

 It's a bit complicated to understand is there a pre-created template I can modify to scrape this page?

Andrew11

unread,
Jul 27, 2022, 3:40:59 PM7/27/22
to Web Scraping
It looks like the Store details links can be opened in a new page and have the email address (if any). Does that work on your end?

scraper

unread,
Jul 27, 2022, 3:49:28 PM7/27/22
to Web Scraping
yes, i can get the info from the next page the problem is that  this is a scroll bar page with 78 entries and has no pages.  
How do I retrieve all the data without manually selecting each entry?

Andrew11

unread,
Jul 27, 2022, 4:10:03 PM7/27/22
to Web Scraping
Oh, that's not technically "infinite scroll" -- those are the kinds of pages where when you scroll down to the bottom of the page, it loads more results. This one should work with a Select command using the CSS:

.store-locator-results a.link

scraper

unread,
Jul 27, 2022, 4:44:37 PM7/27/22
to Web Scraping
Thanks, I'm not sure how to implement this can you reply with a link to a  tutorial ?

Andrew11

unread,
Jul 27, 2022, 5:05:00 PM7/27/22
to Web Scraping

Andrew11

unread,
Jul 27, 2022, 5:06:03 PM7/27/22
to Web Scraping
..,but with the Select command, there's a button that says "ParseHub" or something like that and you can click it to change to "CSS", then add in the statement above.

scraper

unread,
Jul 28, 2022, 10:34:18 AM7/28/22
to Web Scraping
test run produces results,  however run produces empty results

Andrew11

unread,
Jul 28, 2022, 11:34:55 AM7/28/22
to Web Scraping
You might need to add a step that fills in the city / province and clicks submit, then check the "Wait X seconds for elements to appear" on the Select.
Reply all
Reply to author
Forward
0 new messages