Самым быстрым и простым решением является использование пакета requests
без Selenium.Вы можете получить все станции для всех регионов за один запрос:
import requests
url = 'https://ww2.copec.cl/stations/get_stations.json?pagoclick_filter=true&geohash=66jc8&limit=2000'
response = requests.get(url)
stations = response.json()["stations"]
for station in stations:
print("region: %s, title: %s" % (station["region"], station["title"]))
Поля, которые вы можете получить для каждой станции:
"id": 36578,
"company": "copec",
"title": "AV. ANDRES BELLO N\u00ba 2722",
"description": "AV. ANDRES BELLO N\u00ba 2722",
"email": "60109@escopec.cl",
"commune": "LAS CONDES",
"region": "METROPOLITANA",
"phone": "56-2-2311097",
"uuid": "f4976280-277e-4d30-8a0f-03de7ad9d3bb",
"latitude": "-33.4137958011",
"longitude": "-70.6044896114",
"distance": "8218km",
"decimal_distance": 8218.08,
"copec_id": 60109,
"user_distance": "5km",
"user_decimal_distance": 4.65,
"diesel": 611.0,
"kerosene": null,
"gasoline_93": 784.0,
"gasoline_95": 822.0,
"gasoline_97": 849.0,
"gnc": null,
"glp": null,
"pronto": false,
"punto": true,
"dpaso": false,
"cajero": true,
"bano": false,
"lavamax": true,
"zervo": false,
"voltex": false,
"cupon": true,
"tct": false,
"lanpass": true,
"taxiamigo": true,
"mobil": false,
"pagoclick": true,
"autoservicio": false,
"tae": false,
"renova": true,
"lavamax_autoservicio": false,
"lavamax_automatico": true,
"glp_service": false,
"gnc_service": false,
"full_zervo": false,
"mixta_zervo": false,
"tct_premium": false,
"fusion": true,
"wifi": true,
"pantallas": true,
"bluemax_surtidor": false,
"ip": true,
"bluemax_bidon": false,
"agenda_online": false,
"chiletur": true,
"pronto_ruta": false,
"sala_descanso": false,
"nueva_imagen": true,
"telemedicion": true,
"lub": false,
"cyclist": true,
"camaras": false,
"promae": false,
"lavado_manual": false,
"lavado_automatico": false,
"lubricantes": false,
"tienda": false,
"nave_de_lubricacion": false,
"farmacia": false,
"tarjeta_de_credito": false,
"carga_electrica": false