Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option search in nested SiteMaps #132

Open
RodrigoTomeES opened this issue Dec 5, 2023 · 2 comments
Open

Add an option search in nested SiteMaps #132

RodrigoTomeES opened this issue Dec 5, 2023 · 2 comments

Comments

@Nedi11
Copy link

Nedi11 commented Dec 21, 2023

+1

@tgrushka
Copy link

Yes, just found this neat library, and unfortunately there is no way to get sub-sitemap info, e.g. if I want info about which sitemap(s) a url came from in my report. Here is code in sitemapper.js so it is definitely traversing the sub-sitemaps, but not giving us any info about them in the output (would be a really easy feature / option to add):

      } else if (data && data.sitemapindex) {
        // Handle child sitemaps found inside the active sitemap
        if (this.debug) {
          console.debug(`Additional sitemap found during "crawl('${url}')"`);
        }
        // Map each child url into a promise to create an array of promises
        const sitemap = data.sitemapindex.sitemap.map(
          (map) => map.loc && map.loc[0]
        );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants