I would like to access multiple pages through this API. Each page has the same URL except for the market_id. I would like to loop through the pages based on the market_id using the specified range.
for marketid in range(1.166871138,1.171064031):
r = requests.get('https://betfair-data-supplier-prod.herokuapp.com/api/race_results/?market_id={marketid}&nz_tote_event_id=', headers={'User-Agent': 'Mozilla/5.0'})
When I use this code I get an error saying 'float' object cannot be interpreted as an integer.