Hello everyone,
Im using pandas and pyperclip to copy and paste some info to register costumers in Excel to my website. However, I can’t copy any cell in Excell who iniciates with 0. For example: the zip cods who starts with 095… the code only copy the 95…
See below part of the code:
import pyautogui
import pyperclip
import time
import pandas as pdpyautogui.PAUSE = 4
tabela = pd.read_excel(r"C:\Users\Appmax\Desktop\Ids.xlsx")
for i in range(99):
pyautogui.hotkey(‘win’,‘s’)
pyautogui.write(‘chrome’)
pyautogui.press(‘enter’)
link = ‘link to website’
pyperclip.copy(link)
time.sleep(10)
pyautogui.hotkey(‘ctrl’,‘shift’,‘v’)
pyautogui.press(‘enter’)
time.sleep(18)
pyautogui.click(x=291, y=316)
tabela = pd.read_excel(r"C:\Users\Appmax\Desktop\Ids.xlsx")
Nome =
Sobrenome =
Email =
Telefone =
CPF =
CEP =
Rua =
Nr =
Complemento =
Bairro =
Cidade =
for i in tabela[‘Nome’]:
Nome.append(str(i))
for i in tabela[‘Sobrenome’]:
Sobrenome.append(str(i))
for i in tabela[‘E-mail’]:
Email.append(str(i))
for i in tabela[‘Telefone’]:
Telefone.append(str(i))
for i in tabela[‘CPF’]:
CPF.append(str(i))
for i in tabela[‘CEP’]:
CEP.append(str(i))
for i in tabela[‘Rua’]:
Rua.append(str(i))
for i in tabela[‘Nr’]:
Nr.append(str(i))
for i in tabela[‘Complemento’]:
Complemento.append(str(i))
for i in tabela[‘Bairro’]:
Bairro.append(str(i))
for i in tabela[‘Cidade’]:
Cidade.append(str(i))
pyperclip.copy(Nome[0])
pyautogui.hotkey(‘ctrl’,‘shift’,‘v’)
pyautogui.press(‘tab’)
time.sleep(2)
pyperclip.copy(Sobrenome[0])
pyautogui.hotkey(‘ctrl’,‘shift’,‘v’)
pyautogui.press(‘tab’)
time.sleep(2)
pyperclip.copy(Email[0])
pyautogui.hotkey(‘ctrl’,‘shift’,‘v’)
pyautogui.press(‘tab’)
time.sleep(2)
pyperclip.copy(Telefone[0])
pyautogui.hotkey(‘ctrl’,‘shift’,‘v’)
pyautogui.press(‘tab’)
time.sleep(2)
pyperclip.copy(CPF[0])
pyautogui.hotkey(‘ctrl’,‘v’)
time.sleep(2)
pyautogui.press(‘tab’)
time.sleep(2)
pyautogui.press(‘tab’)
time.sleep(2)
pyperclip.copy(CEP[0])
pyautogui.hotkey(‘ctrl’,‘shift’,‘v’)
pyautogui.press(‘tab’)
time.sleep(2)
pyautogui.click(x=856, y=113)
pyautogui.hotkey(‘ctrl’,‘a’)
pyperclip.copy(Rua[0])
pyautogui.hotkey(‘ctrl’,‘shift’,‘v’)
pyautogui.press(‘tab’)
pyperclip.copy(Nr[0])
pyautogui.hotkey(‘ctrl’,‘shift’,‘v’)
pyautogui.press(‘tab’)
pyperclip.copy(Complemento[0])
pyautogui.hotkey(‘ctrl’,‘shift’,‘v’)
pyautogui.press(‘tab’)
pyperclip.copy(Bairro[0])
pyautogui.hotkey(‘ctrl’,‘shift’,‘v’)
pyautogui.press(‘tab’)
pyperclip.copy(Cidade[0])
pyautogui.hotkey(‘ctrl’,‘shift’,‘v’)
pyautogui.press(‘tab’)
pyautogui.click(x=1224, y=438)
time.sleep(6)
pyautogui.write(‘Appmax Recuperação de Chargebacks’)
time.sleep(6)
pyautogui.click(x=1273, y=510)
time.sleep(20)
Thanks for your attention and sorry for my poor english. Any doubts, feel free to ask!