EleccCAPdas
Never
#observar el número entre paréntesis, es el código numérico de cada escuela esc = driver.find_element(By.CSS_SELECTOR, "#comboEstablecimiento > option:nth-child(30)").click() #el mismo debe coincidir en cada parte donde figura un elemento numérico part30=[] votos30 = [] porcent30 = [] for x in soup2.findAll('tbody', attrs={'id':"tbbody"}): partidos = x.findAll('td', attrs={'class': "td tdPersonalizado LISTA"}) for p in partidos: part30.append(p.text) vot = x.findAll('td', attrs={'class': "td tdPersonalizado VOTOS"}) for voto in vot: votos30.append(voto.text) perc = x.findAll('td', attrs={'class': "td tdPersonalizado PORCENTAJE"}) for per in perc: porcent30.append(per.text) df30 = pd.DataFrame({'Partidos': part30, 'Votos': votos30, 'Porcentaje':porcent30}) df30['Partidos'] = df30['Partidos'].str.strip() df30['Partidos'] = df30['Partidos'].str.strip() df30['Partidos'] = df30['Partidos'].str.strip() df30['Partidos'] = df30['Partidos'].str.strip() df30['Partidos'] = df30['Partidos'].str.replace(" ", " ") df30['Votos'] = df30['Votos'].str.strip() df30['Porcentaje'] = df30['Porcentaje'].str.strip() df30.to_excel(writer, sheet_name='ESC. N 717', index=False) #OBSERVAR QUE VA EL NOMBRE DEL ESTABLECIMIENTO
Raw Text
-
Untitled
3 min ago
-
CP😏 VIDEO R@PED😈 LITTLE GIRL🍼👧
26 min ago
-
Untitled
48 min ago
-
Untitled
1 hour ago
-
The 45 Best Free Movie Streaming Sites 05.05.2024
1 hour ago
-
Viral Doods
2 hours ago
-
Candy Girls 🧬🧬🧬🧬
2 hours ago
-
MEGA C...P LINK 👧 +450GB
2 hours ago
-
C..h.1ld p0rn 5-17
2 hours ago
-
CH.L...DP.R.N ..p..ro..n 🍑🐥
2 hours ago