Created
August 26, 2022 13:22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires Autohotkey v1.1.33+ | |
#SingleInstance Force | |
#Include Rufaydium-Webdriver-main\Rufaydium.ahk | |
/* | |
Load "chromedriver.exe" from "A_ScriptDir" | |
In case Driver is not yet available, it will Download "chromedriver.exe" into "A_ScriptDir" | |
before starting the Driver. | |
*/ | |
Chrome := new Rufaydium("chromedriver.exe") | |
f1:: | |
/* | |
Create new session if WebBrowser Version Matches the Webdriver Version. | |
It will ask to download the compatible WebDriver if not present. | |
*/ | |
Page := Chrome.NewSession() | |
; navigate to url | |
url:="https://www.youtube.com/c/JoeGlines-Automator/videos" | |
Page.Navigate(url) | |
elements := Page.querySelectorAll("#video-title") | |
alltitles= | |
for n,elem in elements | |
{ | |
title:=elem.title | |
alltitles=%alltitles%%title%`n | |
} | |
msgbox % alltitles | |
return | |
f12:: | |
Chrome.QuitAllSessions() ; close all session | |
Chrome.Driver.Exit() ; then exits driver | |
ExitApp | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment