I am getting reviews for a webpage and need to scan each page until there are no longer any reviews left. Reviews page have multiple pages, and my first thought was to use a While loop, however, I am unsure where to start. HTML code of the web page looks something similar to this.

Any help is appreciated.

HTMLof the last pageHTMLcode ofNextbutton on the very last page