In order to loop over multiple pages in BeautifulSoup you would need to declare a for loop with a BeautifulSoup object inside of it so it gets initialized for every page you’re looping through.