Skip to content

Commit

Permalink
Fix indentation on the usage page in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley van Lee committed Oct 15, 2024
1 parent f2ee4a2 commit da0560f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Running a crawl job using these settings will result in a newly created WACZ fil

There are 2 ways to crawl against a WACZ archive. Choose a strategy that you want to use for your crawl job, and follow the instruction as described below. Using both strategies at the same time is not allowed.

## Lookup in a WACZ archive
### Lookup in a WACZ archive

One of the ways to crawl against a WACZ archive is to use the `WaczMiddleware` downloader middleware. Instead of fetching the live resource the middleware will instead retrieve it from the archive and recreate a response using the data from the archive.

Expand All @@ -42,7 +42,7 @@ Then define the location of the WACZ archive with `SW_WACZ_SOURCE_URL` setting:
SW_WACZ_SOURCE_URL = "s3://scrapy-webarchive/archive.wacz"
```

## Iterating a WACZ archive
### Iterating a WACZ archive

Going around the default behaviour of the spider, the `WaczCrawlMiddleware` spider middleware will, when enabled, replace the crawl by an iteration through all the entries in the WACZ archive.

Expand Down

0 comments on commit da0560f

Please sign in to comment.