-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Wesley van Lee
committed
Oct 9, 2024
1 parent
1fc3bc5
commit 11b5d85
Showing
2 changed files
with
10 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
# Scrapy Webarchive | ||
|
||
A Web Archive extension for Scrapy | ||
Scrapy Webarchive is a plugin for Scrapy that allows users to capture and export web archives in the WARC and WACZ formats during crawling. | ||
|
||
## Features | ||
|
||
# Installation | ||
* Save web crawls in WACZ format (multiple storages supported; local and cloud). | ||
* Crawl against WACZ format archives. | ||
* Integrate seamlessly with Scrapy’s spider request and response cycle. | ||
|
||
Add to your `settings.py` or your spider configuration. | ||
## Compatibility | ||
|
||
```python | ||
EXTENSIONS = { | ||
'scrapy_webarchive.extensions.WaczExporter': 543, | ||
} | ||
* Python 3.8+ | ||
|
||
DOWNLOADER_MIDDLEWARES = { | ||
'scrapy_webarchive.downloadermiddlewares.WaczMiddleware': 543, | ||
} | ||
## Documentation | ||
|
||
# year, month, day and timestamp are the supported template variables that you can use. | ||
ARCHIVE_EXPORT_URI = 's3://scrapy-webarchive/{year}/{month}/{day}/' | ||
``` | ||
Documentation is available online at [developers.thequestionmark.org/scrapy-webarchive/](https://developers.thequestionmark.org/scrapy-webarchive/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters