Web crawling domain issue

I’m using a small script to crawl some domain links and generate a sitemap with it. Right now it’s working, it is fairly simple. But I need to crawl a specific domain though, and this domain for …