add '_dump()' convenience method to Extractor

This commit is contained in:
Mike Fährmann
2023-08-06 17:03:09 +02:00
parent df5c7ee03e
commit a4f7f7da17

View File

@@ -523,6 +523,10 @@ class Extractor():
test = (test, None)
yield test
@classmethod
def _dump(cls, obj):
util.dump_json(obj, ensure_ascii=False, indent=2)
def _dump_response(self, response, history=True):
"""Write the response content to a .dump file in the current directory.