Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. from urllib.request import Request, urlopen
  2. from bs4 import BeautifulSoup as soup
  3.  
  4. print(' ')
  5. print(' _____ _______ _ ')
  6. print(' | __ \ |__ __| | | ')
  7. print(' | |__) |__ _ ___| | ___ _ __ _ __ ___ _ __ | |_ ')
  8. print(' | _ // _` / __| |/ _ \| \'__| \'__/ _ \ \'_ \| __| ')
  9. print(' | | \ \ (_| \__ \ | (_) | | | | | __/ | | | |_ ')
  10. print(' |_| \_\__,_|___/_|\___/|_| |_| \___|_| |_|\__| ')
  11. print(' ')
  12. print(' ')
  13. print(' ')
  14. print(' 1) Buscar Pelicula ')
  15. print(' 99) Info ')
  16. print(' ')
  17. print(' ')
  18. respuesta = input("Seleccione una opción: ")
  19.  
  20. if respuesta == 99:
  21. print('Introduce la pelicula separado por espacios y sin caracteres especiales.')
  22. else:
  23. pelicula = input("Pelicula a buscar: ")
  24. url = 'https://www.google.es/'
  25.  
  26. req = Request(url, headers={'User-Agent': 'Mozilla/5.0'})
  27.  
  28. webpage = urlopen(req).read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement