Digital Point Forums
Wire Transfer

Go Back   Digital Point Forums > Design & Development > Site & Server Administration > Google Sitemaps
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Jun 5th 2005, 8:29 pm
sarahk's Avatar
sarahk sarahk is online now
iTamer
 
Join Date: Mar 2004
Location: itamer @ Fibs
Posts: 9,905
sarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond repute
Phone Verified
XML Sitemap generator for small sites

When I first started creating sites I used a tool called Xenu to verify that my site indexed ok and that all was well.

I still use it when I'm trying to find my way around the sites of people I'm considering link exchanges with. Sometimes everything is ok but I'm darned if I can find the navigation path.

Anyway, I have a small site which isn't updated so often (despite how often I growl at my husband who is responsible for the content) so I don't want to write elaborate queries to trawl through the site.

So, out comes Xenu to crawl the site and generate the site map. Xenu already does this in part and hopefully Tilman will extend it to include Google's sitemap.

In the meantime this spreadsheet is prepopulated with some of the output from "Export to TAB separated file". Then just run the macro called "CreateGoogleSiteMap" and you'll find in the same location a file called sitemap.xml. It's in the zipped attachment.

I'm no expert in Excel's version of VBA but it's fast and while I am sure it could be better written it'll do me. Let me know if you've found it useful.

Sarah
Attached Files
File Type: zip pagemap.zip (27.1 KB, 946 views)
Reply With Quote
  #2  
Old Jun 5th 2005, 9:16 pm
Will.Spencer's Avatar
Will.Spencer Will.Spencer is offline
NetBuilder
 
Join Date: Apr 2004
Location: Singapore
Posts: 11,911
Will.Spencer has a reputation beyond reputeWill.Spencer has a reputation beyond reputeWill.Spencer has a reputation beyond reputeWill.Spencer has a reputation beyond reputeWill.Spencer has a reputation beyond reputeWill.Spencer has a reputation beyond reputeWill.Spencer has a reputation beyond reputeWill.Spencer has a reputation beyond reputeWill.Spencer has a reputation beyond reputeWill.Spencer has a reputation beyond reputeWill.Spencer has a reputation beyond repute
Wow! Extra cool! XENU rocks and the Google script doesn't.
Reply With Quote
  #3  
Old Jun 5th 2005, 9:37 pm
sarahk's Avatar
sarahk sarahk is online now
iTamer
 
Join Date: Mar 2004
Location: itamer @ Fibs
Posts: 9,905
sarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond reputesarahk has a reputation beyond repute
Phone Verified
small change to one of the subs so that it can handle parameters

Code:
Sub writeLink(url As String, fDate As String)
	url = Replace(url, "&", "&")
	Print #1, "<url>"
	Print #1, "<loc>" + url + "</loc>"
	Print #1, "<lastmod>" + fDate + "</lastmod>"
	Print #1, "<changefreq>Daily</changefreq>"
	Print #1, "<priority>0.8</priority>"
	Print #1, "</url>"
End Sub
Bear in mind that Xenu doesn't obey robots.txt so it will capture local pages you may not want in your sitemap. The best way to handle this is to set up the "don't index" part of xenu which remembers the pages you want excluded. Easier than changing the excel file or the xml file each time

Sarah
Attached Thumbnails
Click image for larger version

Name:	xenustartpage.gif
Views:	501
Size:	18.9 KB
ID:	979  
Reply With Quote
  #4  
Old Jun 5th 2005, 9:53 pm
marktse marktse is offline
Grunt
 
Join Date: Mar 2005
Posts: 35
marktse is on a distinguished road
Thanks for the info. Trying it for my site now.
Mark
Reply With Quote
  #5  
Old Jun 5th 2005, 10:00 pm
stephenmunday stephenmunday is offline
Hand of A'dal
 
Join Date: Jan 2005
Location: Nishinomiya, Japan
Posts: 393
stephenmunday will become famous soon enough
Great tool!

Cheers
Reply With Quote
  #6  
Old Jun 6th 2005, 3:29 am
passat passat is offline
Grunt
 
Join Date: May 2005
Posts: 49
passat is on a distinguished road
cool. thanks!
Reply With Quote
  #7  
Old Jun 6th 2005, 4:57 am
jumble's Avatar
jumble jumble is offline
Champion of the Naaru
 
Join Date: May 2005
Location: Melbourne, Australia
Posts: 142
jumble is an unknown quantity at this point
Hi sarah,

Where is the sitemap saved once the macro is run? I could not find it.

I have made a sitemap using excel also but I am no programmer. So I used a less elegant method. I will describe it here if anyone is interested. This method is useful if you have a forum (in my case I use Invision Power Board) and the topics have the following structure -

http://www.domain.net/forums/index.php?showtopic=1
http://www.domain.net/forums/index.php?showtopic=2
http://www.domain.net/forums/index.php?showtopic=3
etc...

To create the hundreds of required url's in a sitemap format, I created 3 columns in excel.

Column 1 contains

(repeating in every row)

Column 2 contains -

Code:
1
2
3
etc...
(the numbers incrementally increasing on each line - you achieve this by putting in a 1, 2..then selecting them and dragging the controller in the bottom right corner)

Column 3 contains

Code:
</loc></url><url>
Then in column 4 I combine these using the "concatenate" function. The result will look as follows -

Code:
<loc>http://www.domain.net/forums/index.php?showtopic=1</loc></url><url>
You can then cut and paste them into a file as follows -

Code:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc>http://www.domain.net/forums/index.php?showtopic=1</loc></url><url>
<loc>http://www.domain.net/forums/index.php?showtopic=2</loc></url><url>
<loc>http://www.domain.net/forums/index.php?showtopic=3</loc></url><url>
</urlset>
Don't forget to delete the red <url> (see above) entry from the end of the last url line!

Now you have a valid XML file to submit.

Cheers

EDIT: I have provided some additional explanation here.

Last edited by jumble; Jun 6th 2005 at 6:06 am.
Reply With Quote
  #8  
Old Jun 6th 2005, 5:03 am
Canadianbacon's Avatar
Canadianbacon Canadianbacon is offline
of the Nightfall
 
Join Date: Jun 2005
Posts: 1,060
Canadianbacon has a spectacular aura aboutCanadianbacon has a spectacular aura aboutCanadianbacon has a spectacular aura about
Very sweet
Reply With Quote
  #9  
Old Jun 13th 2005, 8:49 am
crumpelfungus crumpelfungus is offline
Peon
 
Join Date: Jun 2005
Posts: 3
crumpelfungus is on a distinguished road
Thumbs up Awesome!

Love it! Great work.

So, basically we:
1) Download your spreadsheet
2) Add the new code (posted in a subsequent thread) to the Macro VBA
3) Get Xenu and run the report, save it as a tab-delimited file
4) Import the Xenu report into MS Excel (either into a new workbook or add a worksheet to your "template" or replace your information altogether)
5) Ta-dah! Done.

By default, the sitemap.xml file gets saved to MY DOCUMENTS.

If you want the sitemap.xml file to be saved to the same directory in which the current MS Excel file is located, change the top of Sub OpenIt() as follows:


Sub OpenIt(cBase As String)
Dim fSitemapPath As String
'GET THE CURRENT FILE'S LOCATION
fSitemapPath = ActiveWorkbook.Path
Dim fSitemap As String
'Now create the tags file.
fSitemap = fSitemapPath & "/sitemap.xml"



The attached MS Excel spreadsheet is a mildly revised version of Sarah's original, including all discussed and disclosed changes up to this point.

Thanks for your pioneering in this direction, Sarah!


PS: Hmmm...the upload feature seems to be temporarily down. Instead, feel free to download the revised MS Excel file with Sarah's macro from:


http://www.humdinger-media.com/sitemap/rev_pagemap.zip
Reply With Quote
  #10  
Old Jun 13th 2005, 1:26 pm
mizt's Avatar
mizt mizt is offline
Twilight Vanquisher
 
Join Date: Jan 2005
Location: Destin, FL
Posts: 772
mizt will become famous soon enough
Umm don't use this on big forums. Its a nice bandwidth killer. Just used a 1 gb in like 2 mins.
__________________
Butterfly Jigs.
Reply With Quote
  #11  
Old Jun 13th 2005, 4:21 pm
Blue's Avatar
Blue Blue is offline
Grunt
 
Join Date: Jun 2005
Location: USA
Posts: 61
Blue is on a distinguished road
Nice tool thanks!
Reply With Quote
  #12  
Old Oct 29th 2007, 7:30 am
wirnik's Avatar
wirnik wirnik is offline
Twilight Vanquisher
 
Join Date: Oct 2006
Location: TurtleSays.com
Posts: 972
wirnik will become famous soon enough
Thank you for sharing, good tool.
__________________
[B]Turtle says: check out most amazing YouTube video clips and news on |
Reply With Quote
  #13  
Old Oct 29th 2007, 8:04 am
trichnosis trichnosis is offline
Herald of the Titans
 
Join Date: Jul 2005
Location: use this space for 15$/month
Posts: 13,722
trichnosis has much to be proud oftrichnosis has much to be proud oftrichnosis has much to be proud oftrichnosis has much to be proud oftrichnosis has much to be proud oftrichnosis has much to be proud oftrichnosis has much to be proud oftrichnosis has much to be proud oftrichnosis has much to be proud oftrichnosis has much to be proud of
i was using xmenu to check my broken links until now.

it's great tip to use
__________________
Buy This Sig.
Me & Myself & Google
Reply With Quote
  #14  
Old Oct 30th 2007, 12:11 am
Zanswer Zanswer is offline
Hand of A'dal
 
Join Date: May 2007
Posts: 263
Zanswer is on a distinguished road
This is a two-year old thread that got bumped up today. but the technique stills works for smaller sites.
__________________
Credit | Immigration |
Reply With Quote
  #15  
Old Oct 30th 2007, 3:08 am
Personaltrainer's Avatar
Personaltrainer Personaltrainer is offline
Champion of the Naaru
 
Join Date: Apr 2007
Posts: 200
Personaltrainer is on a distinguished road
Thanks for sharing this. Great tool.
__________________
Beds For Sale | Personal Trainers | |
Reply With Quote
  #16  
Old Dec 21st 2007, 1:41 am
baybossplaya baybossplaya is offline
Twilight Vanquisher
 
Join Date: Aug 2007
Posts: 595
baybossplaya is on a distinguished road
very useful
__________________
pinay celebrities pinay bold stars
Reply With Quote
  #17  
Old Dec 21st 2007, 6:57 pm
Gallito's Avatar
Gallito Gallito is offline
of the Nightfall
 
Join Date: Dec 2007
Location: Fourth Floor Marketing
Posts: 1,913
Gallito will become famous soon enoughGallito will become famous soon enough
This thread is ancient but if OP is still around thanks, my site has 9 pages and I still need to make a sitemap =)
__________________
Digital Product Reviews~~~~~Custom Configured PC~~~~~

Check out my technology blog in my RSS feed, or the link above to get a computer tailored to your needs and price range!
Reply With Quote
  #18  
Old Dec 21st 2007, 7:42 pm
enous enous is offline
of the Nightfall
 
Join Date: Oct 2007
Posts: 1,080
enous is on a distinguished road
Ya,good tools...
__________________
Yiwu Yiwu
Reply With Quote
  #19  
Old Jan 21st 2008, 1:36 am
britishguy's Avatar
britishguy britishguy is offline
Banned
 
Join Date: Mar 2006
Posts: 7,802
britishguy has a reputation beyond reputebritishguy has a reputation beyond reputebritishguy has a reputation beyond reputebritishguy has a reputation beyond reputebritishguy has a reputation beyond reputebritishguy has a reputation beyond reputebritishguy has a reputation beyond reputebritishguy has a reputation beyond reputebritishguy has a reputation beyond reputebritishguy has a reputation beyond reputebritishguy has a reputation beyond repute
Hi Mods

Please help quickly
Thanks
Best Regards
Pete
britishguy
Reply With Quote
  #20  
Old Feb 7th 2008, 7:25 am
MBrain MBrain is offline
Peon
 
Join Date: Aug 2007
Posts: 24
MBrain is on a distinguished road
Thanks.. nice tool
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to safely interlink sites t2dman Search Engine Optimization 18 Mar 16th 2008 1:39 pm
Google's Aging Delay for New Sites Chrissicom Sandbox 67 Jan 1st 2006 2:48 am
vbsitemap version 0.1 for google sitemaps kalius Google Sitemaps 54 Jul 5th 2005 3:03 pm
Feedback for network of sites newsniche General Chat 0 May 25th 2005 7:35 am
DMOZ assistance DarrenC ODP / DMOZ 128 May 4th 2005 3:37 pm


All times are GMT -8. The time now is 2:27 pm.