crab
crab copied to clipboard
Add ability to persist logs into a file instead of logging them
$ crab crawl:sitemap https://domain.com/sitemap.xml --output output.log
# NO prints here...
It might probably make sense to have a different option for persisting the logs as a valid json file...
$ crab crawl:sitemap https://domain.com/sitemap.xml --output-json output.json
$ cat output.json
[
{"status": 200, "url": "https://domain.com/page-1", ...},
...
]