Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2006

Tip: Looking for answers? Try searching our database.

Scraping Meta Tags

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
The Boondock Saint - 10 Dec 2006 11:50 GMT
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
The Boondock Saint - 11 Dec 2006 05:14 GMT
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;
> Hi everyone, Im trying to find a way to get meta tags into my sheet,
>
[quoted text clipped - 5 lines]
>
> Cheers Saint

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.