the Python script gets the page and clicks the button that cause reloading the main page content. Then I try to get the page source of the reloaded page, but still having the content of the first one. Probably it should be refreshed somehow.
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get(base_listing_url)
time.sleep(10)
driver.find_element_by_css_selector('.fTomoL').click()
time.sleep(10)
print(driver.page_source) #This returns the first page's content