renix1

Automatizar pesquisa no youtube Python 3x

Aug 8th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  1. # -*- coding:utf-8 -*-
  2. import webbrowser
  3. search = int(input("Você quer pesquisar? \n1 - Sim \n2 - Não \nEscreva aqui:"))
  4. if search == 1:
  5.     name_video = input("Digite o nome do vídeo: ")
  6.     checar_name_video = len(url_video)
  7.     if checar_name_video    <= 0:
  8.         print("Você não digitou o nome do vídeo")
  9.     else:
  10.         if checar_url_video >= 1:
  11.             print("Abrindo as páginas")
  12.             webbrowser.open("https://www.youtube.com/results?search_query=%s" % (name_video))
  13.         while checar_url_video >= 1:
  14.             print("MINERANDO BITCOINS HU3 HU3 HU3...")
  15.             webbrowser.open("https://www.youtube.com/results?search_query=%s" % (name_video))
  16. else:
  17.     if search == 2:
  18.         print("Estamos saindo.")
  19.     elif search != 1 or 2:
  20.         print("Não entendemos.")
Advertisement
Add Comment
Please, Sign In to add comment