Created
September 11, 2022 07:59
-
-
Save maiconrp/4641cff2105cca8d005194b7963aec44 to your computer and use it in GitHub Desktop.
Parte de `music-lyric-download` mas irrelevante para o código como um todo, apenas para pegar titulos de um arquivo pessoal específico
This file contains hidden or 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
def pegar_titulos(): | |
time.sleep(2) | |
pg.PAUSE = 0.25 | |
for i in range(2,10): | |
pg.click(x=70, y=723) #clicar na pagina no arquivo (x=70, y=723) | |
pg.write(f'{i}') #selecionar pag pg.write(i) | |
pg.press('enter') #dar enter pg.press('enter') | |
pg.click(x=241, y=478) #clicar na celula do arquivo | |
pg.hotkey('ctrl', 'c') #copiar o texto pg.hotkey('crtl', 'c') | |
pg.click(x=238, y=757) #clicar no arquivo txt Point(x=238, y=757) | |
pg.hotkey('ctrl', 'v') #colar pg.hotkey('crtl', 'v') | |
pg.hotkey('ctrl', 's') #salvar o arquivo | |
#repete | |
else: | |
pg.click(x=351, y=753) | |
pg.click(x=391, y=753) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment