Page 1 of 1

Meta Data

Posted: Thu Mar 05, 2020 7:53 pm
by webmaster
Import this function to extract meta data. To use this on your project, follow these instructions.

Code: Select all

function (name)
   Browser.EvalScript
      ·  "try { return document.querySelector(`meta[name=${argument} i]`).getAttribute('content'); } catch (e) { return ''; }"
      ·  name
As a quick example, assuming the premade has been imported as a global called MetaData, the following will extract the page's URL, keywords and description:

Code: Select all

extract
   url
      Gather.URL
   keywords
      MetaData
         ·  "keywords"
   description
      MetaData
         ·  "description"