1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2025-02-01 03:51:42 +01:00

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
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

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.