Scripting and security

Operating Systems, software development, scripting, PowerShell tips, network and security

Menú principal
  • Categorías
  • Cursos
  • Libro de PowerShell
  • Lo mejor
  • Lo último
  • Proyectos
  • Contactar
Ir al contenido

Mostrar las búsquedas de «El año en búsquedas 2017» mediante PowerShell usando JavaScript (solución 3)

Ofertas y promociones en Videojuegos

PowerShell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ie = New-Object -comobject InternetExplorer.Application
 
$ie.Navigate2("https://google.com/trends/embed/yis/2017/GLOBAL/3bc22de5-427e-4737-8e27-f96ee7d75edf?forceMobileMode=false&isPreviewMode=true&hl=es")
$ie.Visible = $false
 
while($ie.ReadyState -ne 4) {start-sleep -m 100}
 
$ie.document.scripts | % {
    if($_.uniqueNumber -eq 4)
    {
        $_.text,$_.uniqueNumber
        "<script>"+$_.text+"var Items = embedWidgetGlobals.data.listItems; alert(Items)</script>" | Out-File result.html
    }
}
 
.\result.html

CATEGORÍAS

JavaScript, PowerShell

ETIQUETAS

ComObject, data, false, Google, HTML, HTTPS, IE, InternetExplorer.Application, Jesús Niño Camazón, New-Object, Out-File, Start-Sleep

MÁS

  • Ejercicios de PowerShell: ejercicios sobre hilos
  • Realizar una búsqueda en la página de Google y mostrar los enlaces mediante el Modelo de Objetos del Documento (DOM)
  • Cómo depurar scripts en ISE de Windows PowerShell
  • Administración de software de base (Implantación de sistemas operativos)
  • Crear un sistema para ver rutinas de entrenamientos con información sobre el entrenamiento y dibujos (versión con Popovers) (utilizando jQuery, Bootstrap, JSON)
  • Realizar una búsqueda en la página de Google mediante el Modelo de Objetos del Documento (DOM)
654992662 668271387 668207716 674311358 663694018 675683013 615399932 654574474 647117881 679183674 652055574 637747285 606675417 609008328 639043002 628113560 607985020 605833157 661026588 696725150 690860537 643056255 646048558 664519852 690524945 698660292 662792115 628153758 676285707 600978507 696890499 615505761 666710518 694512259 647835056 609253084 634383873 670969853 629639128 666306455 660342587 608407691 608553626 636075509 619426295 686436401 692050177 603653116 632065666 601115132 643353192 697508793 632402493 606204382 685823734 688847698 624501591 601527380 643852041 641586905 657641501 690632768 603878819 637062997 678987730 697412505 690333616 610385258 692032595 686151261