Skip to content

Instantly share code, notes, and snippets.

@hrishimittal
Last active February 9, 2017 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrishimittal/dc349a838a36039f9a9387dcdd6ec2e7 to your computer and use it in GitHub Desktop.
Save hrishimittal/dc349a838a36039f9a9387dcdd6ec2e7 to your computer and use it in GitHub Desktop.
ImportXml function for scraping web data into Google Sheets

#ImportXml function for scraping web data into Google Sheets

Note: All URLs must include the protocol - http:// or https://

Page Title

=IMPORTXML(URL, "//title")

Page Description

=importxml(URL,"//meta[@name='description']/@content")

Page Keywords

=importxml(URL,"//meta[@name='keywords']/@content")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment