Dinamic URL in python

Job ID: 37125509

Budget: $10 – $30 USD

I have a python script that does webscraping on a site that has multiple pages.
my script has this line:
browser.get('https://casadosdados.com.br/empresas/data-de-abertura/2023-08-24/'+folder+'/')
Where, folder is a number from 1 to 10.
I need to build a looping so that the value of the folder changes, up to 10.
To do acraping from page 1 to page 10.
I need too that every time a page is scraped, the files are saved in the cnpj.csv file.