I am in a cycle looking through the results of a search on the pages. The next button never disappears. I want to keep clicking on it until the URL changes anymore. I think I need a query session? I want to do something like this:
new_url = soup.find("blahblah")['href']
if session.current_url == new_url:
return
source
share