Get Skype chat history from main.db synced to MySQL with PHP

核能气质少年 提交于 2019-12-13 09:23:13

问题


Is there a way to get with PHP maybe from Skype main.db data copied to MySQL in every X minutes?

I have Windows 10 and WAMP server running.


回答1:


If you have WAMPP running then just create a BAT file:

copy /b/v/y C:\Users\YOURNAME\AppData\Local\Packages\Microsoft.SkypeApp_kzf8qxf38zg5c\LocalState\s4l-YOUR_SKYPE_NAME.db C:\wamp64\www\skype.db

Then you have the DB file accessible with PHP

$db = new SQLite3('skype.db');
$results = $db->query('SELECT nsp_data FROM messagesv12');
while ($row = $results->fetchArray()) {
// And here's the data:
// $messages['cuid']
// $messages['conversationId']
// $messages['creator']
// $messages['createdTime']
// $messages['content']
}

Just do whatever you want with the data. Add to MySQL or whatever you wish.



来源:https://stackoverflow.com/questions/53052192/get-skype-chat-history-from-main-db-synced-to-mysql-with-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!