Scraping Meta Tags

  • Thread starter Thread starter The Boondock Saint
  • Start date Start date
T

The Boondock Saint

Hi everyone, Im trying to find a way to get meta tags into my sheet,

Im using IE.document.Title to get it in and it works fine, but does anyone
have any examples of how to get in other tags, such as keywords, or
descriptions etc..

Any help would be awesome,

Cheers Saint
 
ive found this code which can be used in html, could this be used in script
in excel?

function getKeywords () {
var metaElements = document.all ?
document.all.tags('META') :
document.getElementsByTagName ?
document.getElementsByTagName ('META') : new Array();
var metaKeywords = new Array();
var i = 0;
for (var m = 0; m < metaElements.length; m++)
if (metaElements[m].name == 'keywords')
metaKeywords[i++] = metaElements[m].content;
return metaKeywords;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Localization and Meta Tags 3
html meta tags! 2
how to read meta tags in c# 3
xhtml meta tags 4
html meta tags 1
another "Includes" question 2
Meta tags versus http-equiv meta tags 5
meta tags 4

Back
Top