I need to create a site map/list,but I need the link-name to show up as well.

What I mean by that is given , say , , I need the following list to be created.

Google -
Images -
My Account -
    Personal Information Edit -
    My Products -
Privacy -

The list needs to be bound to a domain , say

I have tried a depth first search using a python script, with Beautiful Soup to parse the links. Not happening.

Anybody have any ideas on how they would do it?