How to create a sitemap / list

I need to create a sitemap / list, but I also need the link name to be displayed.

What do I mean by this, say www.google.com, I need the following list to create.

Google - www.google.com
Images - http://images.google.com/imghp?hl=en&tab=wi
...
My Account - http://images.google.com/imghp?hl=en&tab=wi
    Personal Information Edit - https://www.google.com/accounts/EditUserInfo
    ...
    My Products - https://www.google.com/accounts/EditServices
...
Privacy - http://www.google.com/intl/en/privacy.html
...

      

The list must be linked to a domain, say us.example.com.

I tried first depth search with a python script, with Beautiful Soup to parse the links. This was unsuccessful.

Anyone have any ideas on how they would go about this?

0


source to share


3 answers


  • Go to XML Sitemap Builder
  • Enter the path to the home page of your website (e.g. www.mydomain.com)
  • Enter the frequency of changing your site (be honest;)
  • Leave everything else as it is and click to get started for the tool to make your sitemap.
  • Once finished downloading the compressed version of the XML file (.gz) and copy it to the root folder
  • You can open the file with a text editor of your choice and change the priority of the documents you think. You can use and use a value between 0.1 and 0.9, but keep in mind that a higher value is used to provide really important sites.
  • It is very important that all search engine bots know that you have a sitemap. Create a new file called


[Source: How To Create Google Sitemap In 5 Minutes]

0


source


A very simple sitemap can be a file named

sitemap.txt

http://website.com/index.php
http://website.com/about.php
http://website.com/blog.php

      

If you need to "clean up" your own site for all your links, you probably misconfigured your site :(



In most languages, you can try either file / direction iteration, if you are using a database, it should be even easier as you can just play all the links at once by configuring the way to generate URLs just to output the Sitemap.txt file (or if you have more than 50/100 urls, you can create XML file)

If you need help creating a file iterator, you can provide more information on which language is best for you, as a decent PHP solution may not help at all if you are writing everything in python.

0


source


If you are looking for an automated web service to generate a sitemap, you can use some of the following features:

You can also find a list of services here: https://code.google.com/p/sitemap-generators/wiki/SitemapGenerators

Good luck!

0


source







All Articles