Records all URLs visited and found within HTML content based on specified patterns, including dynamically loaded content.