我正在使用mitmproxy,我想使用这个脚本har_extractor.py (https://raw.githubusercontent.com/mitmproxy/mitmproxy/master/examples/har_extractor.py)将我的流转换成.har格式。
我不能从这个依赖项https://github.com/JustusW/harparser导入HAR名称,我也不想全局安装它,因为我在Python2.7上的Mac上运行。
这一行从来不起作用:从harparser import HAR我得到一个回溯错误: ImportError: cannot import name HAR
但是,我可以-导入harparser
发布于 2015-07-28 04:57:36
Harparser是在6月23日更新的,这解决了这个问题吗?
它包含HAR函数:
class _HAR(MutableMapping, object):
"""
HAR implementation as per specification version 1.2 ()
This class maps the specification contained in __map__ to dynamic subclasses stored in __classes__.
It then exposes all of this by implementing MutableMapping, the generated subclasses being its keys.
""" https://stackoverflow.com/questions/30809605
复制相似问题