Overview of courlan capabilities
mastercourlan is a Python library designed to act as a 'brain' for web crawling, scraping, and document management. It provides tools to enhance the quality of document collections by filtering out low-value pages, identifying content by language, and deduplicating URL collections at scale.
Key capabilities include:
- URL Validation & Filtering: Using
check_urlto validate, normalize, and filter URLs in a single step. - Cleaning & Normalization: Using
clean_urlandnormalize_urlto fix messy URLs. - Link Extraction: Using
extract_linksandfilter_linksfor crawl-aware extraction from HTML. - Sampling: Using
sample_urlsto select a specific number of URLs per domain. - URL Management: Using
UrlStorefor domain-classified storage with visit tracking. - Crawling Orchestration: Managing crawl delays,
robots.txtcompliance, and download scheduling. - CLI Tools: A command-line interface for filtering and sampling URL files.