CableMap-维基解密CableGate实用程序-电缆分析器
cablemap.core的Python项目详细描述
核心包提供了可用于提取信息的实用程序 外交电报:
>>> from cablemap.core import cable_by_id >>> from cablemap.core.utils import cable_to_json >>> # Fetches the cable with the reference id '09BERLIN1167' from the Internet >>> # and converts it into a Cable object >>> cable = cable_by_id('09BERLIN1167') >>> cable.reference_id u'09BERLIN1167' >>> cable.subject u'DATA PRIVACY TRUMPS SECURITY: IMPLICATIONS OF A FDP VICTORY ON COUNTERTERRORISM COOPERATION' >>> json = cable_to_json(cable) >>>
核心包没有主题映射相关代码,可以独立使用 其他的包裹。
有关其他示例,请参见:https://github.com/heuer/cablemap/tree/master/examples