better dir handling and pull base Url from config scrape url