---
title: "Mirroring HTML Files Only"
author: "shareHua"
date: "2012-12-11T08:10:31Z"
tags: []
categories: ["互联网"]
slug: "mirroring-html-files-only"
draft: false
lastmod: "2012-12-11T08:10:31Z"
id: 1745554
url: "https://sharehua.iteye.com/blog/1745554"
---

you would like to save the crawled files in a file/directory format instead of saving them in WARC files. 
First, create a job with a single seed, http://foo.org/bar/.  Configure the warcWriter bean so that its class is org.archive.modules.writer.MirrorWriterProcessor.  This Processor will store files in a directory structure that matches the crawled URIs.  The files will be stored in the crawl job's mirror directory.