renix1

Automatizar pesquisa no youtube Python 2x

Aug 8th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. # -*- coding:utf-8 -*-
  2. import webbrowser as w
  3. pesquisa = raw_input("O que você quer pesquisar? \nDigite aqui: ")
  4. checar_pesquisa = len(pesquisa)
  5. if checar_pesquisa <= 0:
  6.     print"Você não digitou nada"
  7. else:
  8.     if pesquisa >= 1:
  9.         w.open("https://www.youtube.com/results?search_query=%s" % (pesquisa))
  10.         print"Concluimos a tarefa!!!"
Advertisement
Add Comment
Please, Sign In to add comment