• Become a Power user Intro to AutoHotkey Intermediate AutoHotkey Intermediate Objects GUIs are Easy w/AutoHotkey Painlessly switch from V1 to V2

Web Scraping with AutoHotKey 108- use querySelctorAll for added flexibility

Web Scraping with AutoHotkeyWeb Scraping with AutoHotkeyWeb Scraping with AutoHotkey is fun and easy however some web pages don’t have Names, IDs, or classNames set up.  Other times the pages are pretty sophisticated and you want to grab something very specific (w/out writing a lot of code).   I recently learned about QuerySelctor which uses the CSS Selector.

This W3schools page has a great, dynamic tool, that is very helpful to understand what is being grabbed.  Here is a screenshot of clicking around on the above tool which will help you get the concept.
Web Scraping with AutoHotkey QuerySelectorAll

Below is a video documenting various method calls.Web Scraping with AutoHotkey

Web Scraping with AutoHotkey Tutorial 8- QuerySelectorAll

And lastly here is the script I used walking through the video.

Web Scraping with AutoHotKey 107- using ClassName

web scraping with AutoHotkeyWhen I did my original posts on web scraping with AutoHotkey, I was unaware of ClassName  (getElementsByClassName).

About a year ago I was speaking with Jackie Sztuck from http://jszapp.com (BlackHolyman on the AHK forum) and he introduced me to ClassName.  In the past year I’ve really come to rely on it as my “go-to” for grabbing specific values from a page.   If Name or ID are present I’ll still use them however more and more sites don’t take the time to provide them.

This video demonstrates a few examples where I grab the ClassName.

Web Scraping with AutoHotkey– ClassName

How to Web Scrape with AutoHotkey: Setting values and clicking links in IE

Setting values and clicking links in IE

Setting values and clicking links in IEThis is the second video in this series.  Here we practice setting values and clicking links in IE on a page (kind of reverse of Web Scraping with AutoHotkey however I don’t believe anybody has coined a decent term yet) and clicking links.

Word of warning- some pages want you to fire an “event”.  Sometimes this is tricky.  Given this video is set to an introductory level I only touch a little on the subject.

Web Scraping with AutoHotKey 102-Setting values and clicking links in IE

Setting values and clicking links in IE

The syntax for writing the writing the code can be found on my first post here.  There is also an AutoHotKey forum thread you might wish to review hereSetting values and clicking links in IE is pretty straight forward

Web scraping

 (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs

Web Scraping with AutoHotkey 101.5-Returning InnerTEXT, Value, OuterHTML

Web Scraping with AutoHotkeyAutoHotkey Merchandise-White Stress ballThis is a quick review of getting text from a page using Web Scraping with AutoHotkey.   Often people new to Web Scraping will get hung-up on a minor detail wasting a lot of time.  This video helps point out a few of the common issues like not having a valid pointer and returning the wrong attributes.  Get the iWB2 Learner tool (remember it only works with IE.  If you’re beyond this video you might also check out this one dealing with troubleshooting.

Below is the code I review in the video

Web Scraping with AutoHotkey video overview- Returning the correct content