Last active
October 5, 2021 20:15
-
-
Save ojpojao/09ce6bec4cc2d54a96203efe05d296ae to your computer and use it in GitHub Desktop.
Problema grupo de Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for indice, linha in Agenda.iterrows(): | |
nome = linha['Nome'] | |
numero = linha['Numero'] | |
arquivo = linha['Arquivo'] | |
texto = urllib.parse.quote(f'Olá {nome}! {mensagem}') | |
link = f'https://web.whatsapp.com/send?phone=55{numero}&text={texto}' | |
navegador.get(link) | |
while len(navegador.find_element_by_id('side')) < 1: | |
time.sleep(5) | |
navegador.find_element_by_xpath('//*[@id=main]/footer/div[1]/div/div/div[2]/div[1]/div/div[2]').send_keys(Keys.ENTER) | |
time.sleep(5) | |
# for nome in Agenda['Nome']: | |
# enviar(midia) | |
enviar(midia) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment