How aayans314/aya-engs50-module4 works
This is a command-line web crawler: a user supplies a seed URL, writable page directory, and maximum depth; the crawler validates the seed, fetches and saves pages, then discovers and queues unseen in-domain links until the depth limit is reached. The runtime is organized around crawl orchestration, webpage retrieval and URL processing, and supporting queue, hash, and page-file utilities. The README is empty; relationships below are based on the shown source and API documentation, so unsampled behavior is not assumed.
Main entry points: crawler.c Crawl loop · webpage.c Webpage fetch and parsing · hash.c Visited URL table · pageio.c Page file I/O
Components 8
Crawl orchestration
- Crawl loop
crawler/crawler.c
Webpage processing
- Webpage fetch and parsing
utils/webpage.c
Storage and collections
- Page queue
utils/queue.c - Visited URL table
utils/hash.c - Page file I/O
utils/pageio.c
Other components
- Crawler user
- Web servers
- Page directory
Connections 8
- Crawler user → Crawl loop: starts crawl
crawler/crawler.c - Crawl loop → Webpage fetch and parsing: fetches and parses
crawler/crawler.c - Crawl loop → Page queue: gets and queues
crawler/crawler.c - Crawl loop → Visited URL table: checks and records
crawler/crawler.c - Crawl loop → Page file I/O: saves pages
crawler/crawler.c - Webpage fetch and parsing → Web servers: downloads HTML
- Visited URL table → Page queue: stores entries in
utils/hash.c - Page file I/O → Page directory: writes page files
utils/pageio.c