how to get urls from a domain directory

I would like to get the urls from an specific domain directory.
Below I have a cod that takes the html from a url.
Actually, I need to do something like that but returning the sub urls.
For example, I sweep and get,,, ...

import urllib2
a = urllib2.urlopen('')
html =
print html

Anybody could help me ?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!