Is there a =IMPORTXML equivalent in AHK?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
sn1perwild
Posts: 62
Joined: 04 Aug 2021, 15:11

Is there a =IMPORTXML equivalent in AHK?

Post by sn1perwild » 07 Feb 2023, 07:31

Hello, all!

I'm trying to come up with a script that takes the selected URL and pastes a list of all headings (h2, h3 etc.) in the page.

This is easily done in Google Sheets, by using the following formula:

Code: Select all

=IMPORTXML("https://www.example.com/list-article","//h2")
However, I'd like to have the same functionality in a AutoHotkey script. Is there such a command? The goal is to use the XPATH (//h2 and //h3 and so on) in the code somehow.

I've tried searching for it, but there are endless discussions about extracting text from web pages with no mention on specific tags.

Thanks in advance for the help! :bravo:

User avatar
mikeyww
Posts: 26600
Joined: 09 Sep 2014, 18:38

Re: Is there a =IMPORTXML equivalent in AHK?

Post by mikeyww » 09 Feb 2023, 15:58

As a first step, I would see whether you can :arrow: Download the Web page.

Post Reply

Return to “Ask for Help (v1)”