I would need to run the code iterating the scraping in a date range. Currently I am doing it manually as follows:
start_date=input("Enter start date: mm/dd/yyyy ")
end_date=input("Enter end date: mm/dd/yyyy ")
query=input("Enter query: ")
print("\n")
driver = webdriver.Chrome('/path')
driver.get('path’+‘cd_min=start_date&cd_max=end_date’)
The link above might be slightly different.
I would like to insert the start date manuanlly, then iterate with a while or for loop the functions through time, at step of 1 (start_date+1, start_date+2, and so on)
from a start_date
to an end_date
chosen at the beginning using input as well).
Could you please tell me how I can do that?