Files
blog/content/posts/commits/2026-02-13-commit-7d2e3df.md
Betty 7ac1bd5f4f
All checks were successful
Hugo Build & Deploy / build-deploy (push) Successful in 5s
Add 62 blog posts generated from git commit history
One-shot import of all bojemoi repo commits as Hugo posts.
Each post includes metadata, files changed, and diff stats.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 14:16:05 +01:00

54 lines
1.5 KiB
Markdown

---
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 <noreply@anthropic.com>
### 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(-)
```