Skip to content

Instantly share code, notes, and snippets.

@ojpojao
Last active October 5, 2021 20:15
Show Gist options
  • Save ojpojao/09ce6bec4cc2d54a96203efe05d296ae to your computer and use it in GitHub Desktop.
Save ojpojao/09ce6bec4cc2d54a96203efe05d296ae to your computer and use it in GitHub Desktop.
Problema grupo de Python
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