go-crawler, v1.9.1
Posted on

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
modelspackage to the separate file; - replace the
registers.LinkGeneratorinterface withmodels.LinkExtractor:- replace the
sitemap.GeneratorGrouptype withextractors.ExtractorGroup;
- replace the
- pass a thread ID to the
registers.SitemapRegister.RegisterSitemap()method; - rename the
sanitizingpackage tourlutils; - add the
urlutils.GenerateHierarchicalLinks()function:- use in the
registers.RobotsTXTRegisterstructure; - use in the
sitemap.HierarchicalGeneratorstructure:- replace the
sitemap.SimpleGeneratorstructure withsitemap.HierarchicalGenerator;
- replace the
- use in the
- move the interfaces of the
- simplify the examples.
Repository
Link: https://github.com/thewizardplusplus/go-crawler/tree/v1.9.1.
Content: code.
License: MIT.