In this video I am going to show you a quick and easy way to scroll to the bottom of any webpage. This is especially useful when you are working with infinite scroll pages which are those pages that continue to load more content once you reach the bottom. Some notable examples are sites like Twitter and Instagram.
Let’s have a look at an example.
Once you click the load more button one time the page becomes an infinite scroll page where you simply need to keep scrolling in order to load more posts. If you wanted to scrape all the posts for this user then you would need a way to scroll to the bottom of the page over and over.
Luckily this is pretty easy. However, it’s probably not something you are going to want to memorize so be sure to copy this down and I’ll put it in the description for you.
This will scroll to the bottom of the page so that more posts will load. Now let’s give it a shot and see it in action.
As you can see it’s pretty quick and easy to do this. Once again, I put the code in the description so be sure to save it somewhere for future use.
That’s all for this video, if you liked it feel free to subscribe and I’ll see you in the next one.