SeedTracker
Tracks the progress of crawl per starting seed URL. Because multiple seeds can be used, each potentially generating additional URLs to crawl, SeedTrackers consolidate this process per starting seed. Tracks the URLs discovered for a starting seed and allows for propagation of the crawl mode throughout the entirety of the crawl.
Constructor Summary
Public Constructor | ||
public |
constructor(url: string, mode: Symbol, depth: number) |
Member Summary
Public Members | ||
public |
The depth of the crawl for this seed |
|
public |
The crawl mode symbol the seed is operating under |
|
public |
A set of URLs used for duplication of URLs generated by this seed during the crawl |
|
public |
The URL of the starting seed |
|
public |
How many URLs are left to crawl that originated from the starting seed |
Method Summary
Public Methods | ||
public |
Adds a URL to the set of URLs seen and increments the seeds URL count |
|
public |
Decreases the number of URLs left to crawl for this seed |
|
public |
Are there no more URLs to be crawled that are associated with this seed |
|
public |
Have we seen the supplied URL |