[WEB] Get URLs from Google Search Results [Example]

###MACRO:   [WEB] Get URLs from Google Search Results [Example]

~~~ VER: 1.0    2016-10-13 ~~~

####DOWNLOAD:
[WEB] Get URLs from Google Search Results [Example].kmmacros (19 KB)


###ReleaseNotes

Author.@JMichaelTX based on script by @ccstone

PURPOSE:

  • Get List of URLs (or MD Links) from Google Search Results
  • Works for both Safari and Google Chrome

HOW TO USE:

  1. Do a Google Search in either Safari or Chrome
  2. Trigger this macro

WHAT IT DOES:

  1. Scans the Google results, and returns one link per result
  2. IF GS__Return_Data is set to "MD", then it returns Markdown links
  • Default: URL
  • Markdown Format: [Link Text](URL)
  1. The max number of links returned is set by the Variable GS__Max_Links
  • Default: 10

MACRO SETUP:

  1. Review the Actions in magena color, and change as desired
  • GS__Max_Links
  • GS__Return_Data
  1. ADD the Actions you want to process the results (list of URLs)

TAGS: @XPath @Google @Chrome @Search @Links @JavaScript

USER SETTINGS:

  • Any Action in magenta color is designed to be changed by end-user

REF:

ACTION COLOR CODES

  • To facilitate the reading, customizing, and maintenance of this macro,
    key Actions are colored as follows:
  • GREEN -- Key Comments designed to highlight main sections of macro
  • MAGENTA -- Actions designed to be customized by user
  • YELLOW -- Primary Actions (usually the main purpose of the macro)
  • ORANGE -- Actions that permanently destroy Varibles or Clipboards

REQUIRES:

(1) Keyboard Maestro Ver 7.2.1+
(2) Yosemite (10.10.5)+
(3) Safari or Google Chrome


1 Like

A post was split to a new topic: How would I get the line number of Selected Text in a variable?