2020-07-09 15:50:43 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*-coding:UTF-8 -*
|
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import redis
|
|
|
|
|
|
|
|
sys.path.append(os.path.join(os.environ['AIL_BIN'], 'lib/'))
|
|
|
|
import ConfigLoader
|
|
|
|
|
|
|
|
sys.path.append(os.path.join(os.environ['AIL_BIN'], 'packages/'))
|
|
|
|
import Correlation
|
|
|
|
|
|
|
|
config_loader = ConfigLoader.ConfigLoader()
|
|
|
|
r_serv_crawler = config_loader.get_redis_conn("ARDB_Onion")
|
|
|
|
config_loader = None
|
|
|
|
|
2022-03-04 10:18:36 +00:00
|
|
|
correlation = Correlation.Correlation('username', ['telegram', 'twitter', 'jabber'])
|
2020-07-09 15:50:43 +00:00
|
|
|
|
|
|
|
def save_item_correlation(subtype, username, item_id, item_date):
|
|
|
|
correlation.save_item_correlation(subtype, username, item_id, item_date)
|