--- title: "Add X/Twitter as second CTI source to Razvedka" date: 2026-02-13T14:59:02+01:00 draft: false tags: ["commit", "bojemoi", "feature", "stack"] categories: ["Git Activity"] summary: "Commit 7d2e3df par Betty — 7 fichier(s) modifié(s)" author: "Betty" --- ## Commit `7d2e3df` | | | |---|---| | **Repository** | bojemoi | | **Branch** | `main` | | **Auteur** | Betty | | **Hash** | `7d2e3df0ec701750fc49b6cc61b62c64bc65b0df` | | **Date** | 2026-02-13 | ### Description Razvedka now polls X/Twitter API v2 in parallel with Telegram monitoring. Both sources feed the same buzz_log table and extraction pipeline. Telegram is now optional (warning instead of exit) so Razvedka can run with either or both sources. - New twitter.py: async poll loop using tweepy, since_id tracking, rate limit handling - config.py: twitter_bearer_token, twitter_accounts, twitter_search_queries, twitter_poll_interval - db.py: source column with migration for existing deployments - main.py: Telegram extracted to helper, Twitter task launched in parallel - metrics.py: descriptions updated from "Telegram" to "CTI sources" - Stack: twitter_bearer_token secret + env vars for accounts/queries/interval Co-Authored-By: Claude Opus 4.6 ### Fichiers modifiés ``` M razvedka/razvedka/config.py M razvedka/razvedka/db.py M razvedka/razvedka/main.py M razvedka/razvedka/metrics.py A razvedka/razvedka/twitter.py M razvedka/requirements.txt A stack/46-service-razvedka.yml ``` ### Statistiques ``` 7 files changed, 332 insertions(+), 33 deletions(-) ```