Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion NIVEL 3/6_youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def obtener_script_scrolling(iteration):


opts = Options()
# Forzamos al navegador a representarse en inglés. EL botón "Accept all" se traduce a "Aceptar todo" en función del idioma del navegador
opts.add_experimental_option('prefs', {'intl.accept_languages': 'en,en_US'})
opts.add_argument("user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36")
# Agregar a todos sus scripts de selenium para que no aparezca la ventana de seleccionar navegador por defecto: (desde agosto 2024)
opts.add_argument("--disable-search-engine-choice-screen")
Expand Down Expand Up @@ -80,4 +82,4 @@ def obtener_script_scrolling(iteration):
texto_comentario = comentario.text
print(texto_comentario)
print()
print()
print()