What is Depth-First Crawling?
Depth-first crawling follows each discovered link to its deepest reachable page before backtracking and trying the next branch — a stack-based traversal that prioritises going deep over going wide. For scraping, it means you reach deeply nested product pages, paginated archives, or thread-deep forum posts faster than BFS would, but you can go missing for a long time in a single site branch before surfacing the rest. DFS is fast for deep, narrow targets; it's a trap on sites with large shallow catalogs.