The term Web Scraping is well known but I’ve yet to hear much talk about “Web Pasting”. In this Web Scraping Example with AutoHotkey videoI demonstrate how I helped my Real Estate agent automate checking the status of a house on a website.
Web Scraping examplewith AutoHotkey
Here is a second version where, depending on the status of the home, I write a follow-up email either with an email from Outlook or within the website via COM.
While it is easy to use Excel to transpose rows into columns, I’ve created an AutoHotkey script which negates the need to. Basically it examines what is on the clipboard and replaces tabs with line breaks, then it sends paste to the program thus it is transposing clipboard content. I have it triggered of hitting a hotkey and comes in pretty handy and can save some time if it is something you do frequently.
Below is a video which demonstrates it usage.
^+t:: ;Control, Shift and T trigger script
StringReplace, clipboard, clipboard,%A_Tab%, `r , All ;replace all tabs with line return
SendPlay,^v ;send "paste"
Return
I had over 100 URLs I wanted to submit to StumbleUpon.com and wanted to tag them with around 12 interests. This would have taken me quite some to do manually so I wrote an AutoHotKey script to web scrape and cranked it out in no time! Below is the video demonstrating the AutomatingStumbleUpon submissions.
And here is the first draft of my script (I only included 3 urls in this example)