MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / __init__

Method __init__

IntelOSINT.py:10288–10309  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10286# --- BACKEND LOGIC ---
10287class OSINTCore:
10288 def __init__(self):
10289 self.creds = DEFAULT_CREDS.copy()
10290 loaded = _load_credentials()
10291 if isinstance(loaded, dict):
10292 migrated_tg_session = loaded.pop("tg_session", "")
10293 if migrated_tg_session:
10294 try:
10295 _store_tg_session(migrated_tg_session)
10296 except Exception:
10297 print("[!] Migrazione tg_session verso keyring non riuscita.")
10298 try:
10299 self.creds.update({k: v for k, v in loaded.items() if k in self.creds})
10300 except:
10301 pass
10302 try:
10303 self.creds.pop("tg_session", None)
10304 _save_credentials(self.creds)
10305 except:
10306 pass
10307 self._social_search_cache = {}
10308 self._social_search_cache_ttl = 180
10309 self._social_snapshot_dir = SOCIAL_SNAPSHOTS_DIR
10310
10311 def _normalize_instagram_share_link(self, target):
10312 if not target:

Callers

nothing calls this directly

Calls 3

_load_credentialsFunction · 0.85
_store_tg_sessionFunction · 0.85
_save_credentialsFunction · 0.85

Tested by

no test coverage detected