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

Web Scraping with AutoHotKey 107- Classname

 

Web Scraping with AutoHotKey 106- Web Scraping multiple pages

Web Scraping multiple pages

 Web Scraping multiple pages

Example of how to Web Scraping multiple pages with some simple URL manipulation.  This is where being able to make sure you’ve loaded a page fully, scrape it, then navigate to the next is critical.  Looking for patterns in the URL will help you understand how you’ll be able to navigate to the next page.

A copy of the AutoHotKey syntax writer can be found here.  Remember patience is a virtue and Happy Scraping!

Webscraping with AHK 106- Looping over pages

Business Objects- Creating alerts to alert your query is done executing

Business ObjectsSAP Business Objects doesn’t make it easy to know when the query is completed running (at least not while you’re working on something else). I wrote an AutoHotKey script to alert me it is completed running (and boy does it alert me! LOL).

This way I can put BO in the background and continue working on other tasks.  When the query is complete, I get both a visual and audio alert informing me it is complete.

I had a hard time “hooking” into Business Objects but I was able to monitor status bar to see when it changes/updates.

Video showing Business Objects Alert

Alerts in Business Objects

Screen Clipping w/built in email attachment, IMUGR upload, & saving

screen clippingI use this AutoHotKey screen clipping script at least a dozen times a day. I think most people SHOULD be using it that often but don’t realize how useful it can be.

The below video walks through a some examples of how I use it.  Trust me, after you start using it for a few days, you’ll wonder how you managed to get by all these years without having it!

screen clipping & built-in options

My version allows you to:

  1. have multiple clips on the main window
  2. automatically write a pretty email customized to the time/date and attach a .png file (easy to tweak to whatever format you want)
  3. upload to  IMUGUR:  If you want to do this you’ll need your own oAuth token.  Watch this video to explain how to get one
  4. save locally and paste path to file wherever needed (I use this for Facebook very frequently)
  5. save locally with a time-stamp

Here is the video demonstrating it’s usage

Screen clipping and various uses

and here is the AutoHotkey code (Be sure you create and swap out an IMUGR API key)