World Conquest Chronicles

World Conquest Chronicles

go-crawler, v1.9.1

The library that implements crawling of all relative links for specified ones.

Perform the refactoring: replace the registers.LinkGenerator interface with models.LinkExtractor and add the urlutils.GenerateHierarchicalLinks() function.

Change Log

  • perform the refactoring:
    • move the interfaces of the models package to the separate file;
    • replace the registers.LinkGenerator interface with models.LinkExtractor:
      • replace the sitemap.GeneratorGroup type with extractors.ExtractorGroup;
    • pass a thread ID to the registers.SitemapRegister.RegisterSitemap() method;
    • rename the sanitizing package to urlutils;
    • add the urlutils.GenerateHierarchicalLinks() function:
      • use in the registers.RobotsTXTRegister structure;
      • use in the sitemap.HierarchicalGenerator structure:
        • replace the sitemap.SimpleGenerator structure with sitemap.HierarchicalGenerator;
  • simplify the examples.

Repository

Link: https://github.com/thewizardplusplus/go-crawler/tree/v1.9.1.

Content: code.

License: MIT.