Example #1
0
File: insta.py Project: ghards/goku
def get_amigos(quantos):
  tecla.botao_direito()
  tecla.esc(tempo=1)
  nomes = []
  time.sleep(2)
  for amigo in range(quantos):
    tecla.tab(vezes = 3)
    tecla.botao_direito()
    time.sleep(2)
    tecla.seta(vezes = 4, seta = "down")
    tecla.enter(tempo = 2)
    nome = regex.search("com/(.*)/", clip.paste()).group(1)
    nomes.append(nome)
  print(nomes)
  return nomes
Example #2
0
def kamehameha(browser, sorteio):

    tecla.abre_janela(browser)
    tecla.ctrl("l")
    tecla.escreve(tempo=5, texto=f"instagram.com/{sorteio.pagina}/")
    tecla.enter(tempo=3)
    tecla.ctrl("f")
    tecla.escreve(3, "publicacoes")
    tecla.enter(tempo=3)
    tecla.esc(tempo=1)
    insta.acha_sorteio(sorteio.publicacao)
    insta.marca(sorteio)
    tecla.tab(1)
    tecla.esc(tempo=1)
    tecla.fecha_janela(tempo=1)
Example #3
0
File: insta.py Project: ghards/goku
def marca(sorteio):

  for a in range(0, (sorteio.amigos * sorteio.comentarios) - 1, sorteio.amigos):

    if 1 == sorteio.amigos:
      tecla.escreve(tempo = 5, texto = f"@{sorteio.quem_marcar[a]}")

    elif 2 == sorteio.amigos:
      tecla.escreve(tempo = 5, texto = f"@{sorteio.quem_marcar[a]} @{sorteio.quem_marcar[a + 1]}")
    
    elif 3 == sorteio.amigos:
      tecla.escreve(tempo = 5, texto = f"@{sorteio.quem_marcar[a]} @{sorteio.quem_marcar[a + 1]} @{sorteio.quem_marcar[a + 2]}")
    
    tecla.tab(vezes = 1)
    tecla.enter(tempo = 1)
    time.sleep(20)
    tecla.tab(
      2, "shift")
Example #4
0
def kaioken(browser, sorteio):

    tecla.abre_janela(browser)
    tecla.ctrl("l")
    tecla.escreve(tempo=3, texto=f"instagram.com/{sorteio.eu}/")
    tecla.enter(tempo=2)
    navegador.procura("seguindo", tempo=2)
    quantidade = insta.quantos_sigo(sorteio.eu)
    tecla.enter(tempo=1)
    insta.carrega_amigos()
    navegador.procura("seguindo", tempo=2)
    tecla.enter(tempo=1)
    sorteio.quem_marcar = insta.get_amigos(quantos=quantidade)
    sorteio.salvar
Example #5
0
File: insta.py Project: ghards/goku
def acha_sorteio(publicacao):
  tecla.tab(vezes = 2 + publicacao)
  tecla.enter(tempo = 3)
  tecla.tab(2, "shift")
Example #6
0
def pesquisa_google(texto):
    tecla.abre_janela("edge")
    tecla.enter(tempo=1)
    tecla.ctrl("l")
    tecla.escreve(2, texto)
    tecla.enter(tempo=1)
Example #7
0
def procura(texto, tempo):
    tecla.ctrl("f")
    tecla.escreve(tempo, texto)
    tecla.enter(tempo)
    tecla.esc(tempo)