Facebook数据提取器,用于读取和分析Facebook转储的简单工具(JSON格式)
Facextractor的Python项目详细描述
Facextractor
facebook数据提取器,用于读取和分析facebook dump(json格式)的简单工具。
安装
PYPI
pip install Facextractor
或来源:
git clone https://github.com/geekmoss/facextractor.git
cd facextractor
pip install .
对于bash complete:
bash bash-complete.sh
使用
cli
# Friends: facextractor friends ./facebook-dump # Chats:# For summary of all chats facextractor threads ./facebook-dump # For summary of chat with John Doe facextractor friends ./facebook-dump -f "John Doe"# For summary of all chats where is John Doe is participant facextractor friends ./facebook-dump -p -f "John Doe"
python模块
fromFacextractorimportFriends,Threadst=Threads("./facebook-dump")t.describe()# str: summary of all chatst.analysis.photos# int: count photos of all chatst.threads[0].describe()# str: summary of first thread in listt.find_thread_by_name("John Doe")# Thread: return thread for exact matcht.find_threads_by_participant("John Doe")# List[Thread]: returns list of threads where is participant