add '_dump()' convenience method to Extractor
This commit is contained in:
@@ -523,6 +523,10 @@ class Extractor():
|
|||||||
test = (test, None)
|
test = (test, None)
|
||||||
yield test
|
yield test
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def _dump(cls, obj):
|
||||||
|
util.dump_json(obj, ensure_ascii=False, indent=2)
|
||||||
|
|
||||||
def _dump_response(self, response, history=True):
|
def _dump_response(self, response, history=True):
|
||||||
"""Write the response content to a .dump file in the current directory.
|
"""Write the response content to a .dump file in the current directory.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user