-
Notifications
You must be signed in to change notification settings - Fork 535
Labels
enhancementNew feature or request.New feature or request.t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.
Milestone
Description
There is useful configuration to json.dump() which I'd like to pass through await crawler.export_data("export.json"), but I see no way to do that:
ensure_ascii- as someone living in a country using extended latin, setting this toFalseprevents Python to encode half of the characters as weird messindent- allows me to read the output as a mere humansort_keys- may be useful for git scraping, not sure
The only workaround I can think of right now is something convoluted like:
from pathlib import Path
path = Path("export.json")
await crawler.export_data(path)
path.write_text(json.dumps(json.loads(path.read_text()), ensure_ascii=False, indent=2))vdusek
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request.New feature or request.t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.