FULL PARSE KIT v1: 287 sources, 3-step fetch fallback, AI extraction, discovery+promote self-growth, gh_scan, TG feed, dashboard
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
data/
|
||||||
|
output/
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
*.log
|
||||||
|
*.session
|
||||||
|
*.session-journal
|
||||||
|
.env
|
||||||
|
creds.json
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
# 🚛 FULL PARSE KIT — фулл парсинг набор
|
||||||
|
|
||||||
|
[👻 @AlStack](https://t.me/AlStack) — каталоги тулзов, абузов и халявы каждый день.
|
||||||
|
|
||||||
|
Готовый 24/7-конвейер парсинга форумов, паст, RSS и Telegram-веба: **287 источников** в комплекте, scrape с обходом Cloudflare/DDoS-Guard, AI-экстракция находок (комбо, конфиги, фриби, AI-кредиты, прокси, аккаунты), дедуп, скоринг и автопостинг топа в твой Telegram-канал. Плюс self-growth: парсер сам находит новые источники и промоутит их.
|
||||||
|
|
||||||
|
## Быстрый старт (3 шага)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install -r requirements.txt
|
||||||
|
python dashboard.py
|
||||||
|
# открой http://127.0.0.1:8850 — впиши AI endpoint + ключ, жми «Полный парсинг»
|
||||||
|
```
|
||||||
|
|
||||||
|
AI: любой OpenAI-compatible endpoint (`/v1/chat/completions`) — OpenAI, Dashscope, DeepSeek, OpenRouter, локальная Ollama. Без ключа тоже работает, если endpoint без авторизации.
|
||||||
|
|
||||||
|
## Что внутри
|
||||||
|
|
||||||
|
```
|
||||||
|
parse.py главный парсер: 287 источников -> findings.jsonl
|
||||||
|
discovery.py ищет НОВЫЕ источники (Firecrawl search + AI)
|
||||||
|
promote.py валидирует кандидатов -> sources_extra.json (авто-подхват)
|
||||||
|
gh_scan.py сканер свежих GitHub-реп по темам
|
||||||
|
feed.py обогащение + фильтры + дедуп + пост топ-N в TG-канал
|
||||||
|
dashboard.py веб-морда (stdlib, без зависимостей)
|
||||||
|
sources.json 128 курируемых источников
|
||||||
|
sources_extra.json 159 авто-промоутнутых
|
||||||
|
```
|
||||||
|
|
||||||
|
## Конвейер
|
||||||
|
|
||||||
|
1. **Scrape** с 3-ступенчатым фолбэком: plain HTTP → бесплатный прокси-пул (proxyscrape/TheSpeedX) → Firecrawl (обход Cloudflare/DDoS-Guard; keyless-режим работает без ключа, rate-limit по IP).
|
||||||
|
2. **AI-экстракция**: страница → JSON-массив находок (name/description/price/type/url/author/date).
|
||||||
|
3. **Дедуп** по hash(name+url) в state + по content-hash страницы (не изменилось → skip).
|
||||||
|
4. **Self-growth**: URL из находок → discovery_state → promote.py проверяет живость, апгрейдит до RSS/JSON (XenForo syndication.php, Discourse latest.json) → sources_extra.json.
|
||||||
|
5. **Feed**: инкрементальное чтение findings.jsonl (sqlite offset) → обогащение (size_mb, @контакты) → фильтр malware-мусора → скоринг → топ-N в канал через Telethon (`parse_mode=md`).
|
||||||
|
|
||||||
|
## Настройка фида (опционально)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install telethon
|
||||||
|
# api_id/api_hash: https://my.telegram.org
|
||||||
|
export TG_API_ID=123456
|
||||||
|
export TG_API_HASH=xxxx
|
||||||
|
python feed.py --login # сессия -> data/feed_session
|
||||||
|
# впиши канал в config.json -> "feed_chat" (id или @username)
|
||||||
|
python feed.py --dry # проверить без постинга
|
||||||
|
```
|
||||||
|
|
||||||
|
## Cron (24/7)
|
||||||
|
|
||||||
|
```cron
|
||||||
|
0 * * * * cd /path/to/kit && python parse.py >> output/parse.log 2>&1
|
||||||
|
0 */3 * * * cd /path/to/kit && python discovery.py >> output/discovery.log 2>&1
|
||||||
|
0 */6 * * * cd /path/to/kit && python promote.py >> output/promote.log 2>&1
|
||||||
|
0 */2 * * * cd /path/to/kit && python gh_scan.py >> output/gh.log 2>&1
|
||||||
|
40 */2 * * * cd /path/to/kit && python feed.py >> output/feed.log 2>&1
|
||||||
|
```
|
||||||
|
|
||||||
|
## Секреты
|
||||||
|
|
||||||
|
Ключи (AI, Firecrawl) хранятся в `data/creds.json` — в gitignore, в скачивания дашборда не попадают. Также работают env: `AI_URL`, `AI_MODEL`, `AI_KEY`, `FIRECRAWL_API_KEY`, `GITHUB_TOKEN`, `TG_API_ID`, `TG_API_HASH`.
|
||||||
|
|
||||||
|
## ⚠️ Честно
|
||||||
|
|
||||||
|
- Часть источников периодически умирает (seized/CF-блок/паркинг) — promote.py сам чистит список, мёртвые помечаются DEAD в output/promote_log.jsonl.
|
||||||
|
- Firecrawl keyless имеет rate-limit по IP — при потере 429 помогает ключ с firecrawl.dev (бесплатный тариф).
|
||||||
|
- AI-экстракция жрёт токены: полный прогон 287 источников ≈ 1-3M входных токенов. Дёшево на qwen-turbo/gpt-4o-mini, но качество находок ниже.
|
||||||
|
- feed.py требует СВОЮ user-сессию Telegram; при AuthKeyDuplicated — не ретраить сразу, иначе ключ сгорит.
|
||||||
|
- Контент источников серый/чёрный: тулзы для трафика, комбо, утечки. Фильтр EXCLUDE_RE в feed.py режет малварь (rat/stealer/ransom и т.д.), но вся ответственность за использование находок — на тебе.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
[👻 @AlStack](https://t.me/AlStack) — если полезно: звезда репе, репост в канал.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"ai_url": "",
|
||||||
|
"ai_model": "gpt-4o-mini",
|
||||||
|
"feed_chat": "",
|
||||||
|
"dashboard_port": 8850
|
||||||
|
}
|
||||||
+337
@@ -0,0 +1,337 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""DASHBOARD — веб-морда FULL PARSE KIT (только stdlib, без зависимостей).
|
||||||
|
|
||||||
|
Запуск: python dashboard.py
|
||||||
|
Открой: http://127.0.0.1:8850 (если занят — ищет следующий, см. вывод)
|
||||||
|
|
||||||
|
Возможности:
|
||||||
|
- форма настроек: AI endpoint (любой OpenAI-compatible), модель, ключ, Firecrawl-ключи -> data/creds.json (gitignored)
|
||||||
|
- запуск задач: парсер (полный/тест), discovery, promote, GitHub-скан, feed --dry
|
||||||
|
- живые логи (опрос 1 раз/сек)
|
||||||
|
- скачивание результатов: findings.jsonl, github_new.jsonl (без конфигов и ключей)
|
||||||
|
"""
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import socket
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import threading
|
||||||
|
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
||||||
|
from pathlib import Path
|
||||||
|
from urllib.parse import urlparse, parse_qs
|
||||||
|
|
||||||
|
BASE = Path(__file__).resolve().parent
|
||||||
|
DATA = BASE / "data"
|
||||||
|
DATA.mkdir(exist_ok=True)
|
||||||
|
LOGS = DATA / "logs"
|
||||||
|
LOGS.mkdir(exist_ok=True)
|
||||||
|
CREDS_FILE = DATA / "creds.json"
|
||||||
|
CONFIG_FILE = BASE / "config.json"
|
||||||
|
|
||||||
|
RUNNING = {}
|
||||||
|
RUNNING_LOCK = threading.Lock()
|
||||||
|
|
||||||
|
TASKS = {
|
||||||
|
"parse": [sys.executable, str(BASE / "parse.py")],
|
||||||
|
"parse_test": [sys.executable, str(BASE / "parse.py"), "--limit", "3"],
|
||||||
|
"discovery": [sys.executable, str(BASE / "discovery.py")],
|
||||||
|
"promote": [sys.executable, str(BASE / "promote.py"), "--max", "15"],
|
||||||
|
"gh_scan": [sys.executable, str(BASE / "gh_scan.py")],
|
||||||
|
"feed_dry": [sys.executable, str(BASE / "feed.py"), "--dry"],
|
||||||
|
}
|
||||||
|
|
||||||
|
DOWNLOADABLE = {
|
||||||
|
"findings.jsonl": BASE / "output" / "findings.jsonl",
|
||||||
|
"github_new.jsonl": BASE / "output" / "github_new.jsonl",
|
||||||
|
}
|
||||||
|
|
||||||
|
PAGE = """<!doctype html>
|
||||||
|
<html lang="ru"><head><meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
<title>FULL PARSE KIT</title>
|
||||||
|
<style>
|
||||||
|
:root{--bg:#0d1117;--panel:#161b22;--border:#30363d;--fg:#e6edf3;--dim:#8b949e;--acc:#ff6b35;--ok:#3fb950;--err:#f85149}
|
||||||
|
*{box-sizing:border-box}
|
||||||
|
body{background:var(--bg);color:var(--fg);font:14px/1.5 -apple-system,'Segoe UI',Roboto,sans-serif;margin:0;padding:20px}
|
||||||
|
.wrap{max-width:960px;margin:0 auto}
|
||||||
|
a.ch{color:var(--acc);font-weight:700;text-decoration:none}
|
||||||
|
h1{font-size:22px;margin:8px 0}
|
||||||
|
h1 span{color:var(--acc)}
|
||||||
|
.panel{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:16px;margin:14px 0}
|
||||||
|
label{display:block;color:var(--dim);margin:8px 0 3px;font-size:12px;text-transform:uppercase;letter-spacing:.5px}
|
||||||
|
input,select{width:100%;background:#0d1117;border:1px solid var(--border);color:var(--fg);border-radius:6px;padding:8px 10px;font-size:14px}
|
||||||
|
button{background:var(--acc);color:#fff;border:0;border-radius:6px;padding:9px 16px;font-size:14px;font-weight:600;cursor:pointer;margin:6px 6px 0 0}
|
||||||
|
button.sec{background:#21262d;border:1px solid var(--border)}
|
||||||
|
button:hover{opacity:.9}
|
||||||
|
.row{display:flex;gap:12px;flex-wrap:wrap}
|
||||||
|
.row>div{flex:1;min-width:240px}
|
||||||
|
pre{background:#010409;border:1px solid var(--border);border-radius:8px;padding:12px;height:340px;overflow:auto;font:12px/1.5 Consolas,monospace;white-space:pre-wrap;word-break:break-word}
|
||||||
|
.stat{display:inline-block;background:#0d1117;border:1px solid var(--border);border-radius:20px;padding:4px 12px;margin:3px;color:var(--dim)}
|
||||||
|
.stat b{color:var(--fg)}
|
||||||
|
.ok{color:var(--ok)}.err{color:var(--err)}
|
||||||
|
.foot{color:var(--dim);text-align:center;margin:24px 0 8px;font-size:13px}
|
||||||
|
</style></head>
|
||||||
|
<body><div class="wrap">
|
||||||
|
<div class="panel" style="display:flex;justify-content:space-between;align-items:center">
|
||||||
|
<h1>🚚 FULL PARSE <span>KIT</span></h1>
|
||||||
|
<a class="ch" href="https://t.me/AlStack" target="_blank">👻 @AlStack</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel">
|
||||||
|
<div id="stats">загрузка...</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel">
|
||||||
|
<b>Настройки AI (любой OpenAI-compatible endpoint)</b>
|
||||||
|
<div class="row">
|
||||||
|
<div><label>AI URL (chat/completions)</label><input id="ai_url" placeholder="https://api.openai.com/v1/chat/completions"></div>
|
||||||
|
<div><label>Модель</label><input id="ai_model" placeholder="gpt-4o-mini"></div>
|
||||||
|
</div>
|
||||||
|
<label>AI ключ (не попадёт в git / скачивания)</label><input id="ai_key" type="password" placeholder="sk-...">
|
||||||
|
<label>Firecrawl ключи (через запятую, опционально — обход Cloudflare)</label><input id="fc_keys" type="password" placeholder="fc-...">
|
||||||
|
<label>Канал для фида (id или @username)</label><input id="feed_chat" placeholder="-1001234567890">
|
||||||
|
<button onclick="saveCfg()">Сохранить настройки</button> <span id="cfgmsg" class="ok"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel">
|
||||||
|
<b>Задачи</b><br>
|
||||||
|
<button onclick="run('parse')">▶ Полный парсинг</button>
|
||||||
|
<button class="sec" onclick="run('parse_test')">⚙ Тест (3 источника)</button>
|
||||||
|
<button class="sec" onclick="run('discovery')">🔍 Discovery</button>
|
||||||
|
<button class="sec" onclick="run('promote')">⬆ Promote</button>
|
||||||
|
<button class="sec" onclick="run('gh_scan')">🐙 GitHub scan</button>
|
||||||
|
<button class="sec" onclick="run('feed_dry')">📜 Feed (dry)</button>
|
||||||
|
<br>
|
||||||
|
<label>Логи</label>
|
||||||
|
<select id="task" onchange="logOffset=0"><option value="parse">parse</option><option value="parse_test">parse_test</option><option value="discovery">discovery</option><option value="promote">promote</option><option value="gh_scan">gh_scan</option><option value="feed_dry">feed_dry</option></select>
|
||||||
|
<pre id="log">—</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel">
|
||||||
|
<b>Результаты</b><br>
|
||||||
|
<button class="sec" onclick="location='/dl/findings.jsonl'">⬇ findings.jsonl</button>
|
||||||
|
<button class="sec" onclick="location='/dl/github_new.jsonl'">⬇ github_new.jsonl</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="foot">
|
||||||
|
<a class="ch" href="https://t.me/AlStack" target="_blank">👻 @AlStack</a> — каталоги тулзов, абузов и халявы каждый день
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
let logOffset=0;
|
||||||
|
function $(id){return document.getElementById(id)}
|
||||||
|
async function loadCfg(){
|
||||||
|
const r=await fetch('/api/config');const d=await r.json();
|
||||||
|
$('ai_url').value=d.ai_url||'';$('ai_model').value=d.ai_model||'';$('feed_chat').value=d.feed_chat||'';
|
||||||
|
}
|
||||||
|
async function saveCfg(){
|
||||||
|
const body={ai_url:$('ai_url').value,ai_model:$('ai_model').value,ai_key:$('ai_key').value,fc_keys:$('fc_keys').value,feed_chat:$('feed_chat').value};
|
||||||
|
const r=await fetch('/api/config',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(body)});
|
||||||
|
$('cfgmsg').textContent=r.ok?'сохранено':'ошибка';setTimeout(()=>$('cfgmsg').textContent='',2500);loadCfg();
|
||||||
|
}
|
||||||
|
async function run(t){
|
||||||
|
const r=await fetch('/api/run/'+t,{method:'POST'});const d=await r.json();
|
||||||
|
$('task').value=d.task||t;logOffset=0;
|
||||||
|
if(!r.ok)$('log').textContent=d.error||'fail';
|
||||||
|
}
|
||||||
|
async function tick(){
|
||||||
|
try{
|
||||||
|
const t=$('task').value;
|
||||||
|
const r=await fetch('/api/logs/'+t+'?off='+logOffset);const d=await r.json();
|
||||||
|
if(d.text){const el=$('log');const atEnd=el.scrollTop+el.clientHeight>=el.scrollHeight-30;el.textContent+=d.text;if(atEnd)el.scrollTop=el.scrollHeight;}
|
||||||
|
logOffset=d.next||logOffset;
|
||||||
|
const s=await fetch('/api/status');const sd=await s.json();
|
||||||
|
$('stats').innerHTML=sd.stats.map(x=>'<span class="stat">'+x+'</span>').join('')+
|
||||||
|
(sd.running.length?'<br><span class="stat ok">▶ работает: '+sd.running.join(', ')+'</span>':'<span class="stat">задачи не запущены</span>');
|
||||||
|
}catch(e){}
|
||||||
|
}
|
||||||
|
loadCfg();setInterval(tick,1000);tick();
|
||||||
|
</script>
|
||||||
|
</body></html>
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
def load_creds() -> dict:
|
||||||
|
if CREDS_FILE.exists():
|
||||||
|
try:
|
||||||
|
return json.loads(CREDS_FILE.read_text(encoding="utf-8"))
|
||||||
|
except Exception:
|
||||||
|
return {}
|
||||||
|
return {}
|
||||||
|
|
||||||
|
|
||||||
|
def load_cfg() -> dict:
|
||||||
|
if CONFIG_FILE.exists():
|
||||||
|
try:
|
||||||
|
return json.loads(CONFIG_FILE.read_text(encoding="utf-8"))
|
||||||
|
except Exception:
|
||||||
|
return {}
|
||||||
|
return {}
|
||||||
|
|
||||||
|
|
||||||
|
def save_cfg(cfg: dict):
|
||||||
|
tmp = CONFIG_FILE.with_suffix(".tmp")
|
||||||
|
tmp.write_text(json.dumps(cfg, ensure_ascii=False, indent=2), encoding="utf-8")
|
||||||
|
os.replace(tmp, CONFIG_FILE)
|
||||||
|
|
||||||
|
|
||||||
|
def save_creds(creds: dict):
|
||||||
|
tmp = CREDS_FILE.with_suffix(".tmp")
|
||||||
|
tmp.write_text(json.dumps(creds, ensure_ascii=False, indent=2), encoding="utf-8")
|
||||||
|
os.replace(tmp, CREDS_FILE)
|
||||||
|
try:
|
||||||
|
os.chmod(CREDS_FILE, 0o600)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def spawn_task(name: str):
|
||||||
|
with RUNNING_LOCK:
|
||||||
|
if name in RUNNING and RUNNING[name].poll() is None:
|
||||||
|
return False, "уже запущена"
|
||||||
|
logf = open(LOGS / f"{name}.log", "w", encoding="utf-8")
|
||||||
|
env = dict(os.environ)
|
||||||
|
env["PYTHONIOENCODING"] = "utf-8"
|
||||||
|
env["PYTHONUNBUFFERED"] = "1"
|
||||||
|
creds = load_creds()
|
||||||
|
if creds.get("ai_key"):
|
||||||
|
env["AI_KEY"] = creds["ai_key"]
|
||||||
|
if creds.get("fc_keys"):
|
||||||
|
env["FIRECRAWL_API_KEY"] = creds["fc_keys"]
|
||||||
|
p = subprocess.Popen(TASKS[name], stdout=logf, stderr=subprocess.STDOUT,
|
||||||
|
cwd=str(BASE), env=env)
|
||||||
|
RUNNING[name] = p
|
||||||
|
return True, str(p.pid)
|
||||||
|
|
||||||
|
|
||||||
|
def task_alive(name: str) -> bool:
|
||||||
|
with RUNNING_LOCK:
|
||||||
|
p = RUNNING.get(name)
|
||||||
|
return bool(p and p.poll() is None)
|
||||||
|
|
||||||
|
|
||||||
|
class H(BaseHTTPRequestHandler):
|
||||||
|
def log_message(self, *a):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def _send(self, code, body, ctype="application/json; charset=utf-8"):
|
||||||
|
if isinstance(body, str):
|
||||||
|
body = body.encode("utf-8")
|
||||||
|
self.send_response(code)
|
||||||
|
self.send_header("Content-Type", ctype)
|
||||||
|
self.send_header("Content-Length", str(len(body)))
|
||||||
|
self.send_header("Cache-Control", "no-store")
|
||||||
|
self.end_headers()
|
||||||
|
self.wfile.write(body)
|
||||||
|
|
||||||
|
def do_GET(self):
|
||||||
|
u = urlparse(self.path)
|
||||||
|
if u.path == "/":
|
||||||
|
return self._send(200, PAGE, "text/html; charset=utf-8")
|
||||||
|
if u.path == "/api/health":
|
||||||
|
return self._send(200, json.dumps({"ok": True}))
|
||||||
|
if u.path == "/api/config":
|
||||||
|
cfg = load_cfg()
|
||||||
|
creds = load_creds()
|
||||||
|
return self._send(200, json.dumps({
|
||||||
|
"ai_url": cfg.get("ai_url", ""),
|
||||||
|
"ai_model": cfg.get("ai_model", ""),
|
||||||
|
"feed_chat": cfg.get("feed_chat", ""),
|
||||||
|
"has_ai_key": bool(creds.get("ai_key")),
|
||||||
|
"has_fc_keys": bool(creds.get("fc_keys")),
|
||||||
|
}))
|
||||||
|
if u.path == "/api/status":
|
||||||
|
stats = []
|
||||||
|
f = BASE / "output" / "findings.jsonl"
|
||||||
|
n = sum(1 for _ in open(f, encoding="utf-8")) if f.exists() else 0
|
||||||
|
stats.append(f"находок: <b>{n}</b>")
|
||||||
|
try:
|
||||||
|
srcs = len(json.loads((BASE / "sources.json").read_text(encoding="utf-8")))
|
||||||
|
extra = len(json.loads((BASE / "sources_extra.json").read_text(encoding="utf-8")))
|
||||||
|
stats.append(f"источников: <b>{srcs}+{extra}</b>")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
cfg = load_cfg()
|
||||||
|
creds = load_creds()
|
||||||
|
ai = "ключ задан" if creds.get("ai_key") else ("без ключа" if cfg.get("ai_url") else "не настроен")
|
||||||
|
stats.append(f"AI: <b>{ai}</b>")
|
||||||
|
running = [t for t in TASKS if task_alive(t)]
|
||||||
|
return self._send(200, json.dumps({"stats": stats, "running": running}))
|
||||||
|
if u.path.startswith("/api/logs/"):
|
||||||
|
name = u.path.rsplit("/", 1)[-1]
|
||||||
|
if name not in TASKS:
|
||||||
|
return self._send(404, json.dumps({"error": "no task"}))
|
||||||
|
off = int(parse_qs(u.query).get("off", ["0"])[0])
|
||||||
|
lf = LOGS / f"{name}.log"
|
||||||
|
text, nxt = "", off
|
||||||
|
if lf.exists():
|
||||||
|
with open(lf, "r", encoding="utf-8", errors="replace") as fh:
|
||||||
|
fh.seek(off)
|
||||||
|
text = fh.read()
|
||||||
|
nxt = fh.tell()
|
||||||
|
return self._send(200, json.dumps({"text": text, "next": nxt, "alive": task_alive(name)}))
|
||||||
|
if u.path.startswith("/dl/"):
|
||||||
|
fname = u.path.split("/dl/", 1)[-1]
|
||||||
|
p = DOWNLOADABLE.get(fname)
|
||||||
|
if not p or not p.exists():
|
||||||
|
return self._send(404, json.dumps({"error": "not found (запусти задачу)"}))
|
||||||
|
return self._send(200, p.read_bytes(), "application/octet-stream")
|
||||||
|
return self._send(404, json.dumps({"error": "not found"}))
|
||||||
|
|
||||||
|
def do_POST(self):
|
||||||
|
u = urlparse(self.path)
|
||||||
|
length = int(self.headers.get("Content-Length") or 0)
|
||||||
|
raw = self.rfile.read(length) if length else b""
|
||||||
|
if u.path == "/api/config":
|
||||||
|
try:
|
||||||
|
body = json.loads(raw or b"{}")
|
||||||
|
except Exception:
|
||||||
|
return self._send(400, json.dumps({"error": "bad json"}))
|
||||||
|
cfg = load_cfg()
|
||||||
|
creds = load_creds()
|
||||||
|
if body.get("ai_url") is not None:
|
||||||
|
cfg["ai_url"] = body["ai_url"].strip()
|
||||||
|
if body.get("ai_model"):
|
||||||
|
cfg["ai_model"] = body["ai_model"].strip()
|
||||||
|
if body.get("feed_chat") is not None:
|
||||||
|
cfg["feed_chat"] = body["feed_chat"].strip()
|
||||||
|
if body.get("ai_key"):
|
||||||
|
creds["ai_key"] = body["ai_key"].strip()
|
||||||
|
if body.get("fc_keys"):
|
||||||
|
creds["fc_keys"] = body["fc_keys"].strip()
|
||||||
|
save_cfg(cfg)
|
||||||
|
save_creds(creds)
|
||||||
|
return self._send(200, json.dumps({"ok": True}))
|
||||||
|
if u.path.startswith("/api/run/"):
|
||||||
|
name = u.path.rsplit("/", 1)[-1]
|
||||||
|
if name not in TASKS:
|
||||||
|
return self._send(404, json.dumps({"error": "unknown task"}))
|
||||||
|
ok, info = spawn_task(name)
|
||||||
|
if not ok:
|
||||||
|
return self._send(409, json.dumps({"error": info, "task": name}))
|
||||||
|
return self._send(200, json.dumps({"ok": True, "task": name, "pid": info}))
|
||||||
|
return self._send(404, json.dumps({"error": "not found"}))
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
port = load_cfg().get("dashboard_port") or 8850
|
||||||
|
for p in range(int(port), int(port) + 20):
|
||||||
|
try:
|
||||||
|
s = socket.socket()
|
||||||
|
s.bind(("127.0.0.1", p))
|
||||||
|
s.close()
|
||||||
|
port = p
|
||||||
|
break
|
||||||
|
except OSError:
|
||||||
|
continue
|
||||||
|
else:
|
||||||
|
print("нет свободного порта 8850-8869")
|
||||||
|
return 1
|
||||||
|
srv = ThreadingHTTPServer(("127.0.0.1", port), H)
|
||||||
|
print(f"DASHBOARD: http://127.0.0.1:{port}")
|
||||||
|
srv.serve_forever()
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
raise SystemExit(main())
|
||||||
+207
@@ -0,0 +1,207 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""SOURCE DISCOVERY — ищет НОВЫЕ источники (форумы/тулзы/каналы).
|
||||||
|
|
||||||
|
web search (Firecrawl /search API, env FIRECRAWL_API_KEY) -> AI-экстракция
|
||||||
|
новых URL -> data/discovery_state.json. Дальше promote.py валидирует их
|
||||||
|
и добавляет в sources_extra.json (parse.py подхватывает автоматически).
|
||||||
|
|
||||||
|
Запуск: python discovery.py
|
||||||
|
Cron: 0 */3 * * *
|
||||||
|
"""
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
from datetime import datetime, timezone
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
import requests
|
||||||
|
|
||||||
|
try:
|
||||||
|
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
BASE = Path(__file__).resolve().parent
|
||||||
|
OUTPUT = BASE / "output"
|
||||||
|
OUTPUT.mkdir(exist_ok=True)
|
||||||
|
STATE = BASE / "data" / "discovery_state.json"
|
||||||
|
STATE.parent.mkdir(exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
|
def _load_json(path: Path, default):
|
||||||
|
if path.exists():
|
||||||
|
try:
|
||||||
|
return json.loads(path.read_text(encoding="utf-8"))
|
||||||
|
except Exception:
|
||||||
|
return default
|
||||||
|
return default
|
||||||
|
|
||||||
|
|
||||||
|
CFG = _load_json(BASE / "config.json", {})
|
||||||
|
CREDS = _load_json(BASE / "data" / "creds.json", {})
|
||||||
|
ENVGET = os.environ.get
|
||||||
|
AI_URL = ENVGET("AI_URL") or CFG.get("ai_url") or CREDS.get("ai_url") or "http://127.0.0.1:8000/v1/chat/completions"
|
||||||
|
AI_MODEL = ENVGET("AI_MODEL") or CFG.get("ai_model") or "gpt-4o-mini"
|
||||||
|
AI_KEY = ENVGET("AI_KEY") or CREDS.get("ai_key") or CFG.get("ai_key") or ""
|
||||||
|
|
||||||
|
SEARCH_QUERIES = [
|
||||||
|
"telegram spam software forum 2026",
|
||||||
|
"telegram marketing tool free download 2026",
|
||||||
|
"telegram scraper parser tool github 2026",
|
||||||
|
"telegram mass dm inviter bot 2026",
|
||||||
|
"telegram autoreg account creator tool",
|
||||||
|
"telegram userbot python telethon 2026",
|
||||||
|
"форум телеграм софт рассылка 2026",
|
||||||
|
"cracking forum telegram tools 2026",
|
||||||
|
"carding forum telegram software 2026",
|
||||||
|
"трафик арбитраж телеграм софт форум 2026",
|
||||||
|
"darknet forum telegram spam 2026",
|
||||||
|
"hacking forum telegram tools list 2026",
|
||||||
|
"telegram proxy checker tool free 2026",
|
||||||
|
"telegram session converter tdata tool 2026",
|
||||||
|
"telegram channel scraper member extractor 2026",
|
||||||
|
"telegram bot builder no code free 2026",
|
||||||
|
"telegram marketing software SaaS pricing 2026",
|
||||||
|
"best telegram bulk sender 2026 comparison",
|
||||||
|
"telegram outreach automation tool 2026",
|
||||||
|
"telegram CRM pipeline management 2026",
|
||||||
|
]
|
||||||
|
|
||||||
|
DISCOVERY_PROMPT = """You are a source discovery agent for Telegram tools and traffic software.
|
||||||
|
From this search result, extract:
|
||||||
|
1. NEW forum URLs (not in the known list below)
|
||||||
|
2. NEW GitHub repos for Telegram tools
|
||||||
|
3. NEW SaaS/commercial tools for Telegram
|
||||||
|
4. NEW Telegram channels about traffic/spam/tools
|
||||||
|
5. NEW darknet resources (.onion, Tor forums)
|
||||||
|
|
||||||
|
Skip anything already in sources.json / sources_extra.json of this repo (they are passed in KNOWN SOURCES).
|
||||||
|
|
||||||
|
Return ONLY a JSON array of NEW sources. Each: {"id":"...", "url":"...", "topic":"...", "name":"...", "type":"forum|github|saas|tg-channel|darknet"}"""
|
||||||
|
|
||||||
|
|
||||||
|
def known_urls() -> str:
|
||||||
|
urls = set()
|
||||||
|
for s in _load_json(BASE / "sources.json", []) + _load_json(BASE / "sources_extra.json", []):
|
||||||
|
try:
|
||||||
|
urls.add(re.sub(r"^https?://(www\.)?", "", s["url"]).split("/")[0])
|
||||||
|
except Exception:
|
||||||
|
continue
|
||||||
|
return ", ".join(sorted(urls)[:200])
|
||||||
|
|
||||||
|
|
||||||
|
def firecrawl_keys():
|
||||||
|
ks = ENVGET("FIRECRAWL_API_KEY") or ENVGET("FIRECRAWL_KEYS") or CREDS.get("firecrawl_keys") or ""
|
||||||
|
return [x.strip() for x in ks.split(",") if x.strip()]
|
||||||
|
|
||||||
|
|
||||||
|
def web_search(query: str) -> str:
|
||||||
|
for key in firecrawl_keys():
|
||||||
|
try:
|
||||||
|
r = requests.post(
|
||||||
|
"https://api.firecrawl.dev/v1/search",
|
||||||
|
json={"query": query, "limit": 10},
|
||||||
|
headers={"Authorization": "Bearer " + key},
|
||||||
|
timeout=30,
|
||||||
|
)
|
||||||
|
if r.status_code == 200:
|
||||||
|
data = r.json().get("data", [])
|
||||||
|
if isinstance(data, dict):
|
||||||
|
results = data.get("web", []) or data.get("results", [])
|
||||||
|
else:
|
||||||
|
results = data if isinstance(data, list) else []
|
||||||
|
return "\n".join(
|
||||||
|
f"- {res.get('title','')}: {res.get('url','')} - {res.get('description','')}"
|
||||||
|
for res in results if isinstance(res, dict)
|
||||||
|
)
|
||||||
|
if r.status_code in (401, 402, 429):
|
||||||
|
continue
|
||||||
|
return ""
|
||||||
|
except Exception as e:
|
||||||
|
print(f" search error: {e}")
|
||||||
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
def extract_sources(search_text: str) -> list:
|
||||||
|
headers = {"Content-Type": "application/json"}
|
||||||
|
if AI_KEY:
|
||||||
|
headers["Authorization"] = "Bearer " + AI_KEY
|
||||||
|
try:
|
||||||
|
r = requests.post(AI_URL, headers=headers, json={
|
||||||
|
"model": AI_MODEL,
|
||||||
|
"messages": [
|
||||||
|
{"role": "system", "content": DISCOVERY_PROMPT + "\n\nKNOWN SOURCES:\n" + known_urls()},
|
||||||
|
{"role": "user", "content": search_text[:6000]},
|
||||||
|
],
|
||||||
|
"max_tokens": 1500, "temperature": 0.1,
|
||||||
|
}, timeout=300)
|
||||||
|
if r.status_code == 200:
|
||||||
|
content = r.json()["choices"][0]["message"]["content"].strip()
|
||||||
|
if content.startswith("```"):
|
||||||
|
content = content.split("\n", 1)[1].rsplit("\n", 1)[0]
|
||||||
|
try:
|
||||||
|
return json.loads(content)
|
||||||
|
except json.JSONDecodeError:
|
||||||
|
m = re.search(r"\[.*\]", content, re.S)
|
||||||
|
if m:
|
||||||
|
try:
|
||||||
|
return json.loads(m.group(0))
|
||||||
|
except json.JSONDecodeError:
|
||||||
|
pass
|
||||||
|
except Exception as e:
|
||||||
|
print(f" AI error: {e}")
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
def load_state():
|
||||||
|
return _load_json(STATE, {"found": [], "queries_done": {}})
|
||||||
|
|
||||||
|
|
||||||
|
def save_state(state):
|
||||||
|
STATE.write_text(json.dumps(state, ensure_ascii=False, indent=2), encoding="utf-8")
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
if not firecrawl_keys():
|
||||||
|
print("WARN: FIRECRAWL_API_KEY не задан — web search работать не будет.")
|
||||||
|
print(" задай ключ в env FIRECRAWL_API_KEY или в дашборде (firecrawl.dev)")
|
||||||
|
state = load_state()
|
||||||
|
print(f"DISCOVERY: {len(state['found'])} sources already found")
|
||||||
|
|
||||||
|
now = datetime.now(timezone.utc)
|
||||||
|
for q in SEARCH_QUERIES:
|
||||||
|
last = state["queries_done"].get(q, "")
|
||||||
|
if last and (now - datetime.fromisoformat(last)).total_seconds() < 86400:
|
||||||
|
print(f"SKIP (fresh): {q[:60]}")
|
||||||
|
continue
|
||||||
|
|
||||||
|
print(f"\nSEARCH: {q[:80]}")
|
||||||
|
text = web_search(q)
|
||||||
|
if not text:
|
||||||
|
state["queries_done"][q] = now.isoformat()
|
||||||
|
save_state(state)
|
||||||
|
continue
|
||||||
|
|
||||||
|
added = 0
|
||||||
|
for s in extract_sources(text):
|
||||||
|
if isinstance(s, dict) and s.get("url") and s["url"] not in {x["url"] for x in state["found"]}:
|
||||||
|
s["found_by"] = q
|
||||||
|
s["found_at"] = now.isoformat()
|
||||||
|
state["found"].append(s)
|
||||||
|
added += 1
|
||||||
|
print(f" + {s.get('name','?')}: {s['url']} [{s.get('type','?')}]")
|
||||||
|
|
||||||
|
state["queries_done"][q] = now.isoformat()
|
||||||
|
save_state(state)
|
||||||
|
print(f" +{added} new. Total: {len(state['found'])}")
|
||||||
|
time.sleep(2)
|
||||||
|
|
||||||
|
report = OUTPUT / f"discovery_{now.strftime('%Y%m%d_%H%M')}.json"
|
||||||
|
report.write_text(json.dumps(state, ensure_ascii=False, indent=2), encoding="utf-8")
|
||||||
|
print(f"\nDONE. {len(state['found'])} sources in {report}")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -0,0 +1,271 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""FEED — пост-процессор findings: обогащение, фильтры, дедуп, скоринг,
|
||||||
|
пост топ-N в Telegram-канал через Telethon (user-сессия).
|
||||||
|
|
||||||
|
Читает output/findings.jsonl инкрементально (offset в sqlite), обогащает
|
||||||
|
(size_mb, контакты, бейджи), фильтрует malware-мусор, дедуплицирует по
|
||||||
|
нормализованному title+domain, скорит и постит топ-N.
|
||||||
|
|
||||||
|
Настройка (ОДИН РАЗ):
|
||||||
|
1. Получи api_id/api_hash на https://my.telegram.org
|
||||||
|
2. export TG_API_ID=123456 TG_API_HASH=xxxx (или впиши в data/creds.json)
|
||||||
|
3. python feed.py --login # интерактивный логин, сессия -> data/feed_session
|
||||||
|
4. Впиши id/username канала в config.json -> "feed_chat"
|
||||||
|
|
||||||
|
Запуск: python feed.py [--dry] [--limit N] [--reset]
|
||||||
|
Cron: 40 */2 * * *
|
||||||
|
|
||||||
|
Важно: сессия — ОТДЕЛЬНОЙ копией, коннект короткий.
|
||||||
|
При AuthKeyDuplicated — скип рана (не ретраить, иначе ключ сгорит).
|
||||||
|
"""
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import sqlite3
|
||||||
|
import sys
|
||||||
|
from datetime import datetime, timezone
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
try:
|
||||||
|
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
BASE = Path(__file__).resolve().parent
|
||||||
|
DATA = BASE / "data"
|
||||||
|
DATA.mkdir(exist_ok=True)
|
||||||
|
FINDINGS = BASE / "output" / "findings.jsonl"
|
||||||
|
DB = DATA / "feed_state.db"
|
||||||
|
SESS = DATA / "feed_session"
|
||||||
|
|
||||||
|
|
||||||
|
def _load_json(path: Path, default):
|
||||||
|
if path.exists():
|
||||||
|
try:
|
||||||
|
return json.loads(path.read_text(encoding="utf-8"))
|
||||||
|
except Exception:
|
||||||
|
return default
|
||||||
|
return default
|
||||||
|
|
||||||
|
|
||||||
|
CFG = _load_json(BASE / "config.json", {})
|
||||||
|
CREDS = _load_json(DATA / "creds.json", {})
|
||||||
|
ENVGET = os.environ.get
|
||||||
|
API_ID = int(ENVGET("TG_API_ID") or CREDS.get("tg_api_id") or 0)
|
||||||
|
API_HASH = ENVGET("TG_API_HASH") or CREDS.get("tg_api_hash") or ""
|
||||||
|
FEED_CHAT = ENVGET("FEED_CHAT") or CFG.get("feed_chat") or ""
|
||||||
|
|
||||||
|
# ── фильтры (никакой малвари, только инфо/тулзы) ──
|
||||||
|
EXCLUDE_RE = re.compile(
|
||||||
|
r"\b(rat\b|stealer|ransom|backdoor|drainer|worm\b|botnet|virus|keylogger|"
|
||||||
|
r"malware|trojan|crypter|fud\b|exploit kit|ddos tool|booter|stresser)\b",
|
||||||
|
re.I)
|
||||||
|
HOT_RE = re.compile(
|
||||||
|
r"combolist|combo list|combo\b|\bhq\b|full capture|valid\b|checker|config\b|"
|
||||||
|
r"openbullet|silverbullet|storm\b|ob2\b|database|\bleak|smtp|proxy|proxies|"
|
||||||
|
r"sms\b|email|accounts?\b|dorks?\b|crack", re.I)
|
||||||
|
SIZE_RE = re.compile(r"(\d+(?:[.,]\d+)?)\s*(GB|MB|KB)\b", re.I)
|
||||||
|
CONTACT_RE = re.compile(r"@([A-Za-z][A-Za-z0-9_]{4,31})\b")
|
||||||
|
|
||||||
|
|
||||||
|
def norm_key(name: str, url: str) -> str:
|
||||||
|
dom = ""
|
||||||
|
m = re.match(r"https?://([^/]+)", url or "")
|
||||||
|
if m:
|
||||||
|
dom = m.group(1).lower().replace("www.", "").split(".")[0]
|
||||||
|
n = re.sub(r"[^a-z0-9а-я]+", "", (name or "").lower())[:60]
|
||||||
|
return f"{dom}:{n}"
|
||||||
|
|
||||||
|
|
||||||
|
def db_open() -> sqlite3.Connection:
|
||||||
|
con = sqlite3.connect(str(DB), timeout=30)
|
||||||
|
con.execute("PRAGMA busy_timeout=20000")
|
||||||
|
con.execute("CREATE TABLE IF NOT EXISTS meta(k TEXT PRIMARY KEY, v TEXT)")
|
||||||
|
con.execute("CREATE TABLE IF NOT EXISTS seen(key TEXT PRIMARY KEY, first_at TEXT, name TEXT, source TEXT)")
|
||||||
|
con.execute("CREATE TABLE IF NOT EXISTS posted(key TEXT PRIMARY KEY, msg_id INTEGER, at TEXT)")
|
||||||
|
return con
|
||||||
|
|
||||||
|
|
||||||
|
def load_new(con) -> list:
|
||||||
|
row = con.execute("SELECT v FROM meta WHERE k='offset'").fetchone()
|
||||||
|
off = int(row[0]) if row else 0
|
||||||
|
out = []
|
||||||
|
if not FINDINGS.exists():
|
||||||
|
return out
|
||||||
|
with open(FINDINGS, "r", encoding="utf-8") as f:
|
||||||
|
f.seek(off)
|
||||||
|
for line in f:
|
||||||
|
line = line.strip()
|
||||||
|
if not line:
|
||||||
|
continue
|
||||||
|
try:
|
||||||
|
out.append(json.loads(line))
|
||||||
|
except json.JSONDecodeError:
|
||||||
|
continue
|
||||||
|
new_off = f.tell()
|
||||||
|
con.execute("INSERT INTO meta(k,v) VALUES('offset',?) ON CONFLICT(k) DO UPDATE SET v=excluded.v", (str(new_off),))
|
||||||
|
con.commit()
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
def enrich(f: dict) -> dict:
|
||||||
|
text = f"{f.get('name','')} {f.get('description','')}"
|
||||||
|
size_mb = 0.0
|
||||||
|
for num, unit in SIZE_RE.findall(text):
|
||||||
|
v = float(num.replace(",", "."))
|
||||||
|
size_mb += v * 1024 if unit.upper() == "GB" else (v if unit.upper() == "MB" else v / 1024)
|
||||||
|
f["_size_mb"] = round(size_mb, 1)
|
||||||
|
contacts = CONTACT_RE.findall(text)
|
||||||
|
f["_contacts"] = ["@" + c for c in dict.fromkeys(contacts)
|
||||||
|
if c.lower() not in ("telegram", "gmail", "yahoo", "hotmail", "outlook")][:2]
|
||||||
|
price = (f.get("price") or "").lower()
|
||||||
|
score = 0.0
|
||||||
|
score += min(f["_size_mb"] / 60.0, 4.0) if f["_size_mb"] <= 50000 else 0.5
|
||||||
|
if HOT_RE.search(text):
|
||||||
|
score += 2.0
|
||||||
|
if "free" in price or "бесплат" in price:
|
||||||
|
score += 1.0
|
||||||
|
t = (f.get("type") or "").lower()
|
||||||
|
score += {"combolist": 2.5, "config": 2.0, "configs": 2.0, "database": 2.0, "leak": 2.0, "checker": 1.5,
|
||||||
|
"proxy": 1.5, "smtp": 1.5, "sms": 1.2, "email": 1.2, "autoreg": 1.0,
|
||||||
|
"freebie": 1.8, "ai-credits": 2.0, "vpn": 1.2, "accounts": 1.2, "tool": 1.0,
|
||||||
|
"traffic": 0.5, "inviter": 0.5}.get(t, 0.8)
|
||||||
|
try:
|
||||||
|
age_h = (datetime.now(timezone.utc) - datetime.fromisoformat(f["scraped_at"])).total_seconds() / 3600
|
||||||
|
score += max(0.0, 2.0 - age_h / 24)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
f["_score"] = round(score, 2)
|
||||||
|
return f
|
||||||
|
|
||||||
|
|
||||||
|
def pick(items: list, limit: int, con) -> list:
|
||||||
|
fresh = []
|
||||||
|
for f in items:
|
||||||
|
name, url = f.get("name") or "", f.get("url") or ""
|
||||||
|
if not name or not url.startswith("http"):
|
||||||
|
continue
|
||||||
|
text = f"{name} {f.get('description','')}"
|
||||||
|
if EXCLUDE_RE.search(text):
|
||||||
|
continue
|
||||||
|
try:
|
||||||
|
age_h = (datetime.now(timezone.utc) - datetime.fromisoformat(f.get("scraped_at", ""))).total_seconds() / 3600
|
||||||
|
except Exception:
|
||||||
|
age_h = 9999
|
||||||
|
if age_h > 72:
|
||||||
|
continue
|
||||||
|
key = norm_key(name, url)
|
||||||
|
if con.execute("SELECT 1 FROM seen WHERE key=?", (key,)).fetchone():
|
||||||
|
continue
|
||||||
|
f = enrich(f)
|
||||||
|
f["_key"] = key
|
||||||
|
fresh.append(f)
|
||||||
|
fresh.sort(key=lambda x: -x["_score"])
|
||||||
|
return fresh[:limit]
|
||||||
|
|
||||||
|
|
||||||
|
def md_escape(s: str) -> str:
|
||||||
|
return re.sub(r"[*_`\[\]]", "", s or "").strip()
|
||||||
|
|
||||||
|
|
||||||
|
def fmt_message(items: list) -> str:
|
||||||
|
stamp = datetime.now().strftime("%d.%m %H:%M")
|
||||||
|
lines = [f"DARK FORUM FEED - {stamp} | *новых: {len(items)}*", ""]
|
||||||
|
for f in items:
|
||||||
|
name = md_escape(f.get("name", ""))[:70]
|
||||||
|
url = f.get("url", "")
|
||||||
|
desc = md_escape(f.get("description", ""))[:130]
|
||||||
|
meta = []
|
||||||
|
if f.get("_size_mb") and f["_size_mb"] <= 50000:
|
||||||
|
meta.append(f"{f['_size_mb']:g} MB")
|
||||||
|
if f.get("type"):
|
||||||
|
meta.append(f"тип: {md_escape(f['type'])}")
|
||||||
|
if f.get("price") and "not specified" not in f["price"].lower():
|
||||||
|
meta.append(f"{md_escape(f['price'])[:30]}")
|
||||||
|
if f.get("_contacts"):
|
||||||
|
meta.append(" ".join(f"`{c}`" for c in f["_contacts"]))
|
||||||
|
meta.append(f"src: {md_escape(f.get('source','?'))}")
|
||||||
|
lines.append(f"- [{name}]({url})")
|
||||||
|
if desc:
|
||||||
|
lines.append(f" {desc}")
|
||||||
|
lines.append(f" {' | '.join(meta)}")
|
||||||
|
lines.append("")
|
||||||
|
return "\n".join(lines).strip()
|
||||||
|
|
||||||
|
|
||||||
|
def _client():
|
||||||
|
from telethon import TelegramClient
|
||||||
|
if not API_ID or not API_HASH:
|
||||||
|
raise RuntimeError("TG_API_ID/TG_API_HASH не заданы (env или data/creds.json). Получи на my.telegram.org")
|
||||||
|
return TelegramClient(str(SESS), API_ID, API_HASH)
|
||||||
|
|
||||||
|
|
||||||
|
def login():
|
||||||
|
import asyncio
|
||||||
|
|
||||||
|
async def _run():
|
||||||
|
c = _client()
|
||||||
|
await c.start()
|
||||||
|
me = await c.get_me()
|
||||||
|
await c.disconnect()
|
||||||
|
print(f"LOGIN OK: id={me.id} @{me.username}")
|
||||||
|
asyncio.run(_run())
|
||||||
|
|
||||||
|
|
||||||
|
def post(msg: str):
|
||||||
|
import asyncio
|
||||||
|
if not FEED_CHAT:
|
||||||
|
raise RuntimeError("feed_chat не задан в config.json (id или @username канала)")
|
||||||
|
|
||||||
|
async def _run():
|
||||||
|
c = _client()
|
||||||
|
await c.start()
|
||||||
|
m = await c.send_message(FEED_CHAT, msg, parse_mode="md", link_preview=False)
|
||||||
|
mid = m.id
|
||||||
|
back = await c.get_messages(FEED_CHAT, ids=mid)
|
||||||
|
await c.disconnect()
|
||||||
|
return mid, bool(back)
|
||||||
|
return asyncio.run(_run())
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
if "--login" in sys.argv:
|
||||||
|
login()
|
||||||
|
return 0
|
||||||
|
dry = "--dry" in sys.argv
|
||||||
|
limit = 12
|
||||||
|
if "--limit" in sys.argv:
|
||||||
|
limit = int(sys.argv[sys.argv.index("--limit") + 1])
|
||||||
|
con = db_open()
|
||||||
|
if "--reset" in sys.argv:
|
||||||
|
con.execute("DELETE FROM meta WHERE k='offset'")
|
||||||
|
con.commit()
|
||||||
|
items = load_new(con)
|
||||||
|
print(f"[feed] new findings: {len(items)}")
|
||||||
|
top = pick(items, limit, con)
|
||||||
|
if not top:
|
||||||
|
print("[feed] nothing fresh to post")
|
||||||
|
con.commit()
|
||||||
|
return 0
|
||||||
|
msg = fmt_message(top)
|
||||||
|
if dry:
|
||||||
|
print("=== DRY ===")
|
||||||
|
print(msg)
|
||||||
|
return 0
|
||||||
|
try:
|
||||||
|
mid, ok = post(msg)
|
||||||
|
except Exception as e:
|
||||||
|
print(f"[feed] POST FAIL: {type(e).__name__}: {str(e)[:150]}")
|
||||||
|
return 1
|
||||||
|
now = datetime.now().isoformat()
|
||||||
|
for f in top:
|
||||||
|
con.execute("INSERT OR IGNORE INTO seen(key,first_at,name,source) VALUES(?,?,?,?)",
|
||||||
|
(f["_key"], now, f.get("name", ""), f.get("source", "")))
|
||||||
|
con.execute("INSERT OR IGNORE INTO posted(key,msg_id,at) VALUES(?,?,?)", (f["_key"], mid, now))
|
||||||
|
con.commit()
|
||||||
|
print(f"[feed] POSTED msg_id={mid} verify={ok} items={len(top)}")
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
raise SystemExit(main())
|
||||||
+116
@@ -0,0 +1,116 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""GITHUB SCANNER — ищет свежие репы по темам (анонимный REST API).
|
||||||
|
|
||||||
|
Опционально: env GITHUB_TOKEN (rate limit 60/ч анон -> 5000/ч с токеном).
|
||||||
|
Результат: output/github_new.jsonl (инкрементально, дедуп по full_name).
|
||||||
|
|
||||||
|
Запуск: python gh_scan.py
|
||||||
|
Cron: 0 */2 * * *
|
||||||
|
"""
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
import urllib.parse
|
||||||
|
import urllib.request
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
try:
|
||||||
|
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
BASE = Path(__file__).resolve().parent
|
||||||
|
OUT_DIR = BASE / "output"
|
||||||
|
OUT_DIR.mkdir(exist_ok=True)
|
||||||
|
OUT_FILE = OUT_DIR / "github_new.jsonl"
|
||||||
|
|
||||||
|
QUERIES = [
|
||||||
|
("telegram spam", "stars"),
|
||||||
|
("telegram scraper", "stars"),
|
||||||
|
("telegram inviter", "stars"),
|
||||||
|
("telegram mass dm", "stars"),
|
||||||
|
("telegram autoreg", "stars"),
|
||||||
|
("telethon", "updated"),
|
||||||
|
("telegram bot", "updated"),
|
||||||
|
("telegram proxy", "updated"),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def load_seen():
|
||||||
|
seen = set()
|
||||||
|
for fn in os.listdir(OUT_DIR):
|
||||||
|
if fn.endswith(".jsonl"):
|
||||||
|
try:
|
||||||
|
with open(OUT_DIR / fn, encoding="utf-8") as f:
|
||||||
|
for line in f:
|
||||||
|
line = line.strip()
|
||||||
|
if not line:
|
||||||
|
continue
|
||||||
|
try:
|
||||||
|
rec = json.loads(line)
|
||||||
|
except Exception:
|
||||||
|
continue
|
||||||
|
for key in ("fullName", "full_name", "repo", "name"):
|
||||||
|
if key in rec and isinstance(rec[key], str) and "/" in rec[key]:
|
||||||
|
seen.add(rec[key].lower())
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
return seen
|
||||||
|
|
||||||
|
|
||||||
|
def search(q, sort, per_page=20):
|
||||||
|
url = ("https://api.github.com/search/repositories?q=" +
|
||||||
|
urllib.parse.quote(q) + f"&sort={sort}&order=desc&per_page={per_page}")
|
||||||
|
headers = {
|
||||||
|
"User-Agent": "gh-scan",
|
||||||
|
"Accept": "application/vnd.github+json",
|
||||||
|
}
|
||||||
|
tok = os.environ.get("GITHUB_TOKEN", "")
|
||||||
|
if tok:
|
||||||
|
headers["Authorization"] = "Bearer " + tok
|
||||||
|
req = urllib.request.Request(url, headers=headers)
|
||||||
|
try:
|
||||||
|
with urllib.request.urlopen(req, timeout=30) as r:
|
||||||
|
return json.loads(r.read().decode("utf-8", "ignore")).get("items", [])
|
||||||
|
except Exception as e:
|
||||||
|
print(f"ERR {q}: {e}")
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
seen = load_seen()
|
||||||
|
print(f"previously seen: {len(seen)}")
|
||||||
|
new_recs = []
|
||||||
|
batch_new = set()
|
||||||
|
for q, sort in QUERIES:
|
||||||
|
items = search(q, sort)
|
||||||
|
added = 0
|
||||||
|
for it in items:
|
||||||
|
fn = it["full_name"]
|
||||||
|
low = fn.lower()
|
||||||
|
if low in seen or low in batch_new:
|
||||||
|
continue
|
||||||
|
batch_new.add(low)
|
||||||
|
rec = {
|
||||||
|
"fullName": fn,
|
||||||
|
"stargazersCount": it.get("stargazers_count", 0),
|
||||||
|
"updatedAt": it.get("updated_at", ""),
|
||||||
|
"description": (it.get("description") or "")[:300],
|
||||||
|
"query": q,
|
||||||
|
"foundAt": time.strftime("%Y-%m-%dT%H:%M:%S"),
|
||||||
|
}
|
||||||
|
new_recs.append(rec)
|
||||||
|
added += 1
|
||||||
|
print(f"{q!r} ({sort}): {len(items)} results, {added} new")
|
||||||
|
time.sleep(4 if not os.environ.get("GITHUB_TOKEN") else 1.5)
|
||||||
|
with open(OUT_FILE, "a", encoding="utf-8") as f:
|
||||||
|
for rec in new_recs:
|
||||||
|
f.write(json.dumps(rec, ensure_ascii=False) + "\n")
|
||||||
|
print(f"TOTAL NEW: {len(new_recs)}")
|
||||||
|
for r in new_recs:
|
||||||
|
print(f" + {r['fullName']} ({r['stargazersCount']}*)")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -0,0 +1,381 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""FULL PARSE KIT — главный парсер.
|
||||||
|
|
||||||
|
128+ источников (форумы, пасты, TG-веб, RSS, JSON-API) -> scrape с
|
||||||
|
3-ступенчатым фолбэком (plain HTTP -> free proxy pool -> Firecrawl) ->
|
||||||
|
AI-экстракция (любой OpenAI-compatible endpoint) -> дедуп -> output/findings.jsonl
|
||||||
|
|
||||||
|
Запуск:
|
||||||
|
python parse.py # все источники
|
||||||
|
python parse.py --limit 5 # первые 5 (тест)
|
||||||
|
python parse.py --topic combo # только тема
|
||||||
|
|
||||||
|
Конфиг: config.json (ai_url, ai_model) + data/creds.json (ai_key) или env AI_KEY.
|
||||||
|
Firecrawl: env FIRECRAWL_API_KEY (можно несколько через запятую) — опционально.
|
||||||
|
"""
|
||||||
|
import hashlib
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
from datetime import datetime, timezone
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
import requests
|
||||||
|
|
||||||
|
try:
|
||||||
|
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
BASE = Path(__file__).resolve().parent
|
||||||
|
OUTPUT_DIR = BASE / "output"
|
||||||
|
OUTPUT_DIR.mkdir(exist_ok=True)
|
||||||
|
STATE_FILE = BASE / "data" / "state.json"
|
||||||
|
STATE_FILE.parent.mkdir(exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
|
def _load_json(path: Path, default):
|
||||||
|
if path.exists():
|
||||||
|
try:
|
||||||
|
return json.loads(path.read_text(encoding="utf-8"))
|
||||||
|
except Exception:
|
||||||
|
return default
|
||||||
|
return default
|
||||||
|
|
||||||
|
|
||||||
|
CFG = _load_json(BASE / "config.json", {})
|
||||||
|
CREDS = _load_json(BASE / "data" / "creds.json", {})
|
||||||
|
AI_URL = os.environ.get("AI_URL") or CFG.get("ai_url") or CREDS.get("ai_url") or "http://127.0.0.1:8000/v1/chat/completions"
|
||||||
|
AI_MODEL = os.environ.get("AI_MODEL") or CFG.get("ai_model") or "gpt-4o-mini"
|
||||||
|
AI_KEY = os.environ.get("AI_KEY") or CREDS.get("ai_key") or CFG.get("ai_key") or ""
|
||||||
|
|
||||||
|
SOURCES = _load_json(BASE / "sources.json", [])
|
||||||
|
_extra = _load_json(BASE / "sources_extra.json", [])
|
||||||
|
_have = {s["id"] for s in SOURCES}
|
||||||
|
SOURCES.extend([s for s in _extra if s.get("id") not in _have and s.get("url")])
|
||||||
|
|
||||||
|
EXTRACT_PROMPT = """Extract ALL noteworthy items from this forum/feed page: Telegram software/tools/services, FREEBIES and giveaways (free API credits, free AI subscriptions, free VPS/domains/emails/proxies/keys, trial offers), combos/configs/leaks/dumps, proxies, accounts, VPN, traffic/affiliate services, cracking tools.
|
||||||
|
Return a JSON array of objects with these fields:
|
||||||
|
- name: item/topic name
|
||||||
|
- description: what it is/offers (1 line)
|
||||||
|
- price: if mentioned (free/paid/price range)
|
||||||
|
- type: one of [spammer, scraper, inviter, autoreg, userbot, combo, configs, proxy, carding, traffic, freebie, ai-credits, vpn, accounts, leak, tool, other]
|
||||||
|
- url: link if available
|
||||||
|
- author: username of poster/seller
|
||||||
|
- date: when posted
|
||||||
|
Return ONLY valid JSON array, no other text. If nothing noteworthy, return []."""
|
||||||
|
|
||||||
|
|
||||||
|
def load_state():
|
||||||
|
return _load_json(STATE_FILE, {"last_run": None, "scraped": {}, "findings": [], "seen": {}})
|
||||||
|
|
||||||
|
|
||||||
|
def save_state(state):
|
||||||
|
payload = json.dumps(state, ensure_ascii=False, indent=2)
|
||||||
|
tmp = STATE_FILE.with_suffix(".json.tmp")
|
||||||
|
for attempt in range(5):
|
||||||
|
try:
|
||||||
|
tmp.write_text(payload, encoding="utf-8")
|
||||||
|
os.replace(tmp, STATE_FILE)
|
||||||
|
return
|
||||||
|
except OSError as e:
|
||||||
|
if attempt == 4:
|
||||||
|
print(f"[state] SAVE FAILED after 5 attempts: {e}", flush=True)
|
||||||
|
return
|
||||||
|
time.sleep(2 * (attempt + 1))
|
||||||
|
|
||||||
|
|
||||||
|
# ── Firecrawl (обход Cloudflare/DDoS-Guard) ──
|
||||||
|
|
||||||
|
def _firecrawl_keys():
|
||||||
|
keys = []
|
||||||
|
ks = os.environ.get("FIRECRAWL_API_KEY") or os.environ.get("FIRECRAWL_KEYS") or CREDS.get("firecrawl_keys") or ""
|
||||||
|
if ks:
|
||||||
|
keys.extend(x.strip() for x in ks.split(",") if x.strip())
|
||||||
|
return keys
|
||||||
|
|
||||||
|
|
||||||
|
def _scrape_firecrawl(url: str):
|
||||||
|
"""keyless v2 (rate-limit per-IP) -> keyed v1 (ротация)."""
|
||||||
|
try:
|
||||||
|
r = requests.post(
|
||||||
|
"https://api.firecrawl.dev/v2/scrape",
|
||||||
|
headers={"Content-Type": "application/json", "X-Origin": "mcp-fastmcp"},
|
||||||
|
json={"url": url, "formats": ["markdown"], "onlyMainContent": True},
|
||||||
|
timeout=120,
|
||||||
|
)
|
||||||
|
if r.status_code == 200:
|
||||||
|
data = r.json()
|
||||||
|
md = ""
|
||||||
|
if isinstance(data.get("data"), dict):
|
||||||
|
md = data["data"].get("markdown") or ""
|
||||||
|
elif isinstance(data.get("data"), list) and data["data"]:
|
||||||
|
md = data["data"][0].get("markdown") or ""
|
||||||
|
if len(md) > 500:
|
||||||
|
return md[:80000]
|
||||||
|
except Exception as e:
|
||||||
|
print(f" Firecrawl keyless error: {e}", flush=True)
|
||||||
|
for key in _firecrawl_keys():
|
||||||
|
try:
|
||||||
|
r = requests.post(
|
||||||
|
"https://api.firecrawl.dev/v1/scrape",
|
||||||
|
headers={"Authorization": "Bearer " + key, "Content-Type": "application/json"},
|
||||||
|
json={"url": url, "formats": ["markdown"], "onlyMainContent": True},
|
||||||
|
timeout=120,
|
||||||
|
)
|
||||||
|
if r.status_code == 200:
|
||||||
|
md = (r.json().get("data") or {}).get("markdown") or ""
|
||||||
|
if len(md) > 500:
|
||||||
|
return md[:80000]
|
||||||
|
continue
|
||||||
|
if r.status_code in (401, 402, 403, 429):
|
||||||
|
continue
|
||||||
|
except Exception as e:
|
||||||
|
print(f" Firecrawl error: {e}", flush=True)
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
# ── прокси-пул (бесплатные HTTP) ──
|
||||||
|
|
||||||
|
_PROXY_FILE = BASE / "data" / "proxies_live.txt"
|
||||||
|
|
||||||
|
|
||||||
|
def _proxy_pool(n: int = 5):
|
||||||
|
import random
|
||||||
|
proxies = []
|
||||||
|
fresh = _PROXY_FILE.exists() and (time.time() - _PROXY_FILE.stat().st_mtime < 21600)
|
||||||
|
if fresh:
|
||||||
|
proxies = [l.strip() for l in _PROXY_FILE.read_text().splitlines() if l.strip().startswith("http")]
|
||||||
|
if not proxies:
|
||||||
|
for src_url in [
|
||||||
|
"https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=8000&country=all&ssl=all&anonymity=all",
|
||||||
|
"https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt",
|
||||||
|
]:
|
||||||
|
try:
|
||||||
|
r = requests.get(src_url, timeout=20)
|
||||||
|
for line in r.text.splitlines():
|
||||||
|
line = line.strip()
|
||||||
|
if re.match(r"^\d+\.\d+\.\d+\.\d+:\d+$", line):
|
||||||
|
proxies.append("http://" + line)
|
||||||
|
if len(proxies) > 80:
|
||||||
|
break
|
||||||
|
except Exception:
|
||||||
|
continue
|
||||||
|
if proxies:
|
||||||
|
try:
|
||||||
|
_PROXY_FILE.write_text("\n".join(proxies[:120]))
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
random.shuffle(proxies)
|
||||||
|
return proxies[:n]
|
||||||
|
|
||||||
|
|
||||||
|
def scrape_with_fallback(url: str):
|
||||||
|
"""plain HTTP -> free proxy pool -> Firecrawl."""
|
||||||
|
ua = {
|
||||||
|
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
|
||||||
|
"Accept": "text/html,application/xhtml+xml,application/json;q=0.9",
|
||||||
|
"Accept-Language": "en-US,en;q=0.9,ru;q=0.8",
|
||||||
|
}
|
||||||
|
try:
|
||||||
|
r = requests.get(url, headers=ua, timeout=25)
|
||||||
|
if r.status_code == 200 and len(r.text) > 1200:
|
||||||
|
return r.text[:80000]
|
||||||
|
print(f" HTTP {r.status_code}", flush=True)
|
||||||
|
except Exception as e:
|
||||||
|
print(f" HTTP error: {str(e)[:60]}", flush=True)
|
||||||
|
for px in _proxy_pool(5):
|
||||||
|
try:
|
||||||
|
r = requests.get(url, headers=ua, timeout=25, proxies={"http": px, "https": px})
|
||||||
|
if r.status_code == 200 and len(r.text) > 1200:
|
||||||
|
print(f" via proxy {px}", flush=True)
|
||||||
|
return r.text[:80000]
|
||||||
|
except Exception:
|
||||||
|
continue
|
||||||
|
return _scrape_firecrawl(url)
|
||||||
|
|
||||||
|
|
||||||
|
# ── AI-экстракция ──
|
||||||
|
|
||||||
|
def extract_with_ai(markdown: str):
|
||||||
|
headers = {"Content-Type": "application/json"}
|
||||||
|
if AI_KEY:
|
||||||
|
headers["Authorization"] = "Bearer " + AI_KEY
|
||||||
|
models = [AI_MODEL, "qwen-plus", "qwen-turbo"] if AI_MODEL not in ("qwen-plus", "qwen-turbo") else [AI_MODEL]
|
||||||
|
for mdl in models:
|
||||||
|
for attempt in range(2):
|
||||||
|
try:
|
||||||
|
r = requests.post(
|
||||||
|
AI_URL,
|
||||||
|
headers=headers,
|
||||||
|
json={
|
||||||
|
"model": mdl,
|
||||||
|
"messages": [
|
||||||
|
{"role": "system", "content": EXTRACT_PROMPT},
|
||||||
|
{"role": "user", "content": markdown[:8000]},
|
||||||
|
],
|
||||||
|
"max_tokens": 4000,
|
||||||
|
"temperature": 0.1,
|
||||||
|
},
|
||||||
|
timeout=180,
|
||||||
|
)
|
||||||
|
if r.status_code == 200:
|
||||||
|
content = r.json()["choices"][0]["message"]["content"].strip()
|
||||||
|
if content.startswith("```"):
|
||||||
|
content = content.split("\n", 1)[1].rsplit("\n", 1)[0]
|
||||||
|
if not content.startswith("["):
|
||||||
|
m = re.search(r"\[.*\]", content, re.DOTALL)
|
||||||
|
if m:
|
||||||
|
content = m.group(0)
|
||||||
|
return json.loads(content)
|
||||||
|
print(f"AI {mdl} HTTP {r.status_code}", flush=True)
|
||||||
|
if r.status_code in (401, 403):
|
||||||
|
print("AI: нет доступа (проверь ключ/endpoint в dashboard)", flush=True)
|
||||||
|
return []
|
||||||
|
except Exception as e:
|
||||||
|
print(f"AI {mdl} error: {str(e)[:60]}", flush=True)
|
||||||
|
time.sleep(1.5)
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
def _deep_threads(markdown: str, limit: int = 3) -> str:
|
||||||
|
"""Для RSS: добираем тела свежих тредов."""
|
||||||
|
if "<item>" not in markdown[:3000] and "<rss" not in markdown[:500]:
|
||||||
|
return markdown
|
||||||
|
links = re.findall(r"<link>\s*(https?://[^<]+?)\s*</link>", markdown)
|
||||||
|
links = [l for l in links if not l.rstrip("/").endswith((".php", ".xml"))][1:limit + 1]
|
||||||
|
extra = []
|
||||||
|
for l in links:
|
||||||
|
try:
|
||||||
|
r = requests.get(l, headers={"User-Agent": "Mozilla/5.0"}, timeout=15)
|
||||||
|
if r.status_code == 200 and len(r.text) > 2000:
|
||||||
|
body = re.sub(r"<script.*?</script>|<style.*?</style>", " ", r.text, flags=re.DOTALL)
|
||||||
|
body = re.sub(r"<[^>]+>", " ", body)
|
||||||
|
body = re.sub(r"\s+", " ", body).strip()
|
||||||
|
extra.append(f"\n\n=== THREAD {l} ===\n{body[:3500]}")
|
||||||
|
except Exception:
|
||||||
|
continue
|
||||||
|
return markdown + "".join(extra)
|
||||||
|
|
||||||
|
|
||||||
|
DISCOVERY_STATE = BASE / "data" / "discovery_state.json"
|
||||||
|
|
||||||
|
|
||||||
|
def _harvest_candidates(markdown: str, findings: list):
|
||||||
|
"""Self-growth: URL из находок -> discovery_state (promote.py проверит)."""
|
||||||
|
try:
|
||||||
|
st = _load_json(DISCOVERY_STATE, {"found": []})
|
||||||
|
have = {s.get("url", "").lower() for s in st.get("found", [])} | {s["url"].lower() for s in SOURCES}
|
||||||
|
added = 0
|
||||||
|
for f in findings:
|
||||||
|
u = (f.get("url") or "").strip().split("?")[0]
|
||||||
|
if not u.startswith("http"):
|
||||||
|
continue
|
||||||
|
dom = re.sub(r"^www\.", "", u.split("/")[2].lower())
|
||||||
|
if u.lower() in have or "t.me" in dom or "github" in dom:
|
||||||
|
continue
|
||||||
|
if any(k in dom for k in ["forum", "crack", "card", "leak", "hack", "null", "dump", "dark", "breach", "combo"]):
|
||||||
|
st.setdefault("found", []).append({"url": u, "name": dom, "via": "parser-feedback"})
|
||||||
|
have.add(u.lower())
|
||||||
|
added += 1
|
||||||
|
if added:
|
||||||
|
tmp = DISCOVERY_STATE.with_suffix(".tmp")
|
||||||
|
tmp.write_text(json.dumps(st, ensure_ascii=False, indent=1), encoding="utf-8")
|
||||||
|
os.replace(tmp, DISCOVERY_STATE)
|
||||||
|
print(f" feedback: +{added} candidates -> discovery_state", flush=True)
|
||||||
|
except Exception as e:
|
||||||
|
print(f" feedback error: {str(e)[:60]}", flush=True)
|
||||||
|
|
||||||
|
|
||||||
|
def _finding_key(f: dict) -> str:
|
||||||
|
return hashlib.md5(f"{f.get('name','')}|{f.get('url','')}".lower().encode()).hexdigest()
|
||||||
|
|
||||||
|
|
||||||
|
def process_source(src: dict, state: dict):
|
||||||
|
sid = src["id"]
|
||||||
|
now = datetime.now(timezone.utc).isoformat()
|
||||||
|
print(f"\n{'='*50}\n[{sid}] {src['url']}", flush=True)
|
||||||
|
|
||||||
|
markdown = scrape_with_fallback(src["url"])
|
||||||
|
if not markdown:
|
||||||
|
print(f"[{sid}] SKIP - no content", flush=True)
|
||||||
|
return
|
||||||
|
|
||||||
|
content_hash = hashlib.sha256(markdown.encode()).hexdigest()
|
||||||
|
prev_hash = state["scraped"].get(sid, {}).get("hash", "")
|
||||||
|
if content_hash == prev_hash:
|
||||||
|
print(f"[{sid}] SKIP - unchanged", flush=True)
|
||||||
|
return
|
||||||
|
|
||||||
|
markdown = _deep_threads(markdown)
|
||||||
|
findings = extract_with_ai(markdown)
|
||||||
|
if not findings:
|
||||||
|
print(f"[{sid}] SKIP - no AI findings", flush=True)
|
||||||
|
return
|
||||||
|
|
||||||
|
seen = state.setdefault("seen", {})
|
||||||
|
fresh = []
|
||||||
|
for f in findings:
|
||||||
|
k = _finding_key(f)
|
||||||
|
if k not in seen:
|
||||||
|
seen[k] = now[:10]
|
||||||
|
fresh.append(f)
|
||||||
|
if not fresh:
|
||||||
|
state["scraped"][sid] = {"hash": content_hash, "at": now, "count": 0}
|
||||||
|
print(f"[{sid}] SKIP - all {len(findings)} findings already seen", flush=True)
|
||||||
|
return
|
||||||
|
findings = fresh
|
||||||
|
|
||||||
|
raw_path = OUTPUT_DIR / f"{sid}_{now[:10]}.md"
|
||||||
|
raw_path.write_text(markdown, encoding="utf-8")
|
||||||
|
|
||||||
|
for f in findings:
|
||||||
|
f["source"] = sid
|
||||||
|
f["source_url"] = src["url"]
|
||||||
|
f["scraped_at"] = now
|
||||||
|
|
||||||
|
state["scraped"][sid] = {"hash": content_hash, "at": now, "count": len(findings)}
|
||||||
|
state["findings"].extend(findings)
|
||||||
|
state["last_run"] = now
|
||||||
|
|
||||||
|
with open(OUTPUT_DIR / "findings.jsonl", "a", encoding="utf-8") as f:
|
||||||
|
for finding in findings:
|
||||||
|
f.write(json.dumps(finding, ensure_ascii=False) + "\n")
|
||||||
|
|
||||||
|
print(f"[{sid}] +{len(findings)} findings", flush=True)
|
||||||
|
_harvest_candidates(markdown, findings)
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||||
|
|
||||||
|
srcs = SOURCES
|
||||||
|
if "--limit" in sys.argv:
|
||||||
|
srcs = srcs[:int(sys.argv[sys.argv.index("--limit") + 1])]
|
||||||
|
if "--topic" in sys.argv:
|
||||||
|
t = sys.argv[sys.argv.index("--topic") + 1].lower()
|
||||||
|
srcs = [s for s in srcs if t in (s.get("topic") or "").lower()]
|
||||||
|
|
||||||
|
state = load_state()
|
||||||
|
print(f"STATE: {len(state['scraped'])} sources tracked, {len(state['findings'])} findings, "
|
||||||
|
f"{len(state.get('seen', {}))} dedupe keys", flush=True)
|
||||||
|
print(f"SOURCES: {len(srcs)} | AI: {AI_URL} ({AI_MODEL})", flush=True)
|
||||||
|
|
||||||
|
with ThreadPoolExecutor(max_workers=8) as ex:
|
||||||
|
futs = {ex.submit(process_source, src, state): src for src in srcs}
|
||||||
|
for fut in as_completed(futs):
|
||||||
|
src = futs[fut]
|
||||||
|
try:
|
||||||
|
fut.result()
|
||||||
|
except Exception as e:
|
||||||
|
print(f"[{src['id']}] ERROR: {e}", flush=True)
|
||||||
|
save_state(state)
|
||||||
|
|
||||||
|
print(f"\nDONE. {len(state['findings'])} total findings in {OUTPUT_DIR}", flush=True)
|
||||||
|
save_state(state)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
+241
@@ -0,0 +1,241 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""SOURCE PROMOTE — авто-улучшение списка источников.
|
||||||
|
|
||||||
|
Замыкает цикл: discovery.py (ищет кандидатов) -> ЭТОТ скрипт (валидирует
|
||||||
|
живость, апгрейдит до RSS/JSON-эндпоинтов, дедуплицирует) ->
|
||||||
|
sources_extra.json (parse.py подхватывает автоматически).
|
||||||
|
|
||||||
|
Кандидаты: SEEDS (кураторский список) + data/discovery_state.json +
|
||||||
|
feedspot-каталоги (cracking/hacking/dumps/carding).
|
||||||
|
|
||||||
|
Запуск: python promote.py [--dry] [--max N] [--seeds-only]
|
||||||
|
Cron: 0 */6 * * *
|
||||||
|
"""
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
from datetime import datetime, timezone
|
||||||
|
from pathlib import Path
|
||||||
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
|
import requests
|
||||||
|
|
||||||
|
try:
|
||||||
|
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
BASE = Path(__file__).resolve().parent
|
||||||
|
EXTRA_FILE = BASE / "sources_extra.json"
|
||||||
|
DISCOVERY_STATE = BASE / "data" / "discovery_state.json"
|
||||||
|
LOG = BASE / "output" / "promote_log.jsonl"
|
||||||
|
LOG.parent.mkdir(exist_ok=True)
|
||||||
|
UA = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Safari/537.36"}
|
||||||
|
PARKED_RE = re.compile(r"domain (is )?for sale|buy this domain|parkingcrew|sedoparking|Researches: No results|account suspended|522 Connection timed out", re.I)
|
||||||
|
|
||||||
|
SEEDS = [
|
||||||
|
{"url": "https://www.nodeloc.com/latest.json", "topic": "freebie"},
|
||||||
|
{"url": "https://www.v2ex.com/api/topics/hot.json", "topic": "freebie"},
|
||||||
|
{"url": "https://hostloc.com/forum.php?mod=rss", "topic": "freebie"},
|
||||||
|
{"url": "https://findaicredits.com/", "topic": "freebie"},
|
||||||
|
{"url": "https://linux.do/latest.json", "topic": "freebie"},
|
||||||
|
{"url": "https://linux.do/c/welfare/26.json", "topic": "freebie"},
|
||||||
|
{"url": "https://bhf.io/", "topic": "cracking"},
|
||||||
|
{"url": "https://leak.sx/", "topic": "cracking"},
|
||||||
|
{"url": "https://xss.is/", "topic": "hacking"},
|
||||||
|
{"url": "https://forum.hashkiller.io/index.php", "topic": "cracking"},
|
||||||
|
{"url": "https://crackingarena.com/", "topic": "cracking"},
|
||||||
|
{"url": "https://www.crackingpro.com/", "topic": "cracking"},
|
||||||
|
{"url": "https://cybernulled.com/", "topic": "cracking"},
|
||||||
|
{"url": "https://crackia.com/", "topic": "cracking"},
|
||||||
|
{"url": "https://craxpro.io/", "topic": "cracking"},
|
||||||
|
]
|
||||||
|
|
||||||
|
FEEDSPOT_PAGES = [
|
||||||
|
"https://forums.feedspot.com/cracking_forums/",
|
||||||
|
"https://forums.feedspot.com/dumps_forums/",
|
||||||
|
"https://forums.feedspot.com/carding_forums/",
|
||||||
|
]
|
||||||
|
|
||||||
|
TOPIC_HINTS = [
|
||||||
|
("freebie", r"nodeloc|linux\.do|v2ex|hostloc|freebie|welfare|credits|free.?trial|халяв"),
|
||||||
|
("combo", r"combo|dump|database|breach"),
|
||||||
|
("configs", r"config|openbullet|silverbullet|storm"),
|
||||||
|
("carding", r"card|cc|cvv|fullz"),
|
||||||
|
("proxies", r"proxy|proxies|vpn"),
|
||||||
|
("traffic", r"traffic|arbitrage|cpa|seo|affiliate"),
|
||||||
|
("accounts", r"account"),
|
||||||
|
("hacking", r"hack|exploit|xss|security"),
|
||||||
|
("cracking", r"crack|nulled"),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def infer_topic(url: str, name: str = "") -> str:
|
||||||
|
text = f"{url} {name}".lower()
|
||||||
|
for topic, pat in TOPIC_HINTS:
|
||||||
|
if re.search(pat, text):
|
||||||
|
return topic
|
||||||
|
return "cracking"
|
||||||
|
|
||||||
|
|
||||||
|
def domain_of(url: str) -> str:
|
||||||
|
h = urlparse(url).netloc.lower()
|
||||||
|
return h[4:] if h.startswith("www.") else h
|
||||||
|
|
||||||
|
|
||||||
|
def firecrawl_ok(url: str) -> bool:
|
||||||
|
"""keyless firecrawl v2 probe (per-IP rate-limit)."""
|
||||||
|
try:
|
||||||
|
r = requests.post("https://api.firecrawl.dev/v2/scrape",
|
||||||
|
headers={"Content-Type": "application/json", "X-Origin": "mcp-fastmcp"},
|
||||||
|
json={"url": url, "formats": ["markdown"], "onlyMainContent": True},
|
||||||
|
timeout=40)
|
||||||
|
if r.status_code == 200:
|
||||||
|
md = ((r.json().get("data") or {}).get("markdown") or "")
|
||||||
|
return len(md) > 1500 and not PARKED_RE.search(md[:3000])
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def probe(url: str):
|
||||||
|
"""returns (alive, final_url, status)."""
|
||||||
|
try:
|
||||||
|
r = requests.get(url, headers=UA, timeout=14, allow_redirects=True)
|
||||||
|
except Exception:
|
||||||
|
return False, url, 0
|
||||||
|
body = r.text
|
||||||
|
if r.status_code == 200 and len(body) > 1500 and not PARKED_RE.search(body[:3000]):
|
||||||
|
return True, str(r.url), 200
|
||||||
|
if r.status_code in (403, 503) and ("cloudflare" in body.lower() or "ddos-guard" in body.lower() or r.status_code == 403):
|
||||||
|
if firecrawl_ok(url):
|
||||||
|
return True, str(r.url), 201
|
||||||
|
return False, url, r.status_code
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade_url(url: str) -> str:
|
||||||
|
"""XenForo -> syndication.php RSS, Discourse -> latest.json (если ещё не)."""
|
||||||
|
if url.endswith((".json", ".rss")) or "syndication.php" in url or "mod=rss" in url:
|
||||||
|
return url
|
||||||
|
base = url.rstrip("/")
|
||||||
|
try:
|
||||||
|
r = requests.get(base + "/latest.json", headers=UA, timeout=10)
|
||||||
|
if r.status_code == 200 and "topic_list" in r.text[:400]:
|
||||||
|
return base + "/latest.json"
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
|
r = requests.get(base + "/syndication.php?limit=50", headers=UA, timeout=10)
|
||||||
|
if r.status_code == 200 and ("<rss" in r.text[:500] or "<?xml" in r.text[:200]):
|
||||||
|
return base + "/syndication.php?limit=50"
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
return url
|
||||||
|
|
||||||
|
|
||||||
|
def load_extra() -> list:
|
||||||
|
if EXTRA_FILE.exists():
|
||||||
|
try:
|
||||||
|
return json.loads(EXTRA_FILE.read_text(encoding="utf-8"))
|
||||||
|
except Exception:
|
||||||
|
return []
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
def existing_urls() -> set:
|
||||||
|
urls = set()
|
||||||
|
try:
|
||||||
|
for s in json.loads((BASE / "sources.json").read_text(encoding="utf-8")):
|
||||||
|
urls.add(s["url"].lower())
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
for s in load_extra():
|
||||||
|
urls.add(s["url"].lower())
|
||||||
|
return urls
|
||||||
|
|
||||||
|
|
||||||
|
def save_extra(items: list):
|
||||||
|
tmp = EXTRA_FILE.with_suffix(".tmp")
|
||||||
|
tmp.write_text(json.dumps(items, ensure_ascii=False, indent=1), encoding="utf-8")
|
||||||
|
os.replace(tmp, EXTRA_FILE)
|
||||||
|
|
||||||
|
|
||||||
|
def log(rec: dict):
|
||||||
|
with open(LOG, "a", encoding="utf-8") as f:
|
||||||
|
f.write(json.dumps(rec, ensure_ascii=False) + "\n")
|
||||||
|
|
||||||
|
|
||||||
|
def collect_candidates(seeds_only: bool) -> list:
|
||||||
|
cands = [dict(s) for s in SEEDS]
|
||||||
|
if seeds_only:
|
||||||
|
return cands
|
||||||
|
try:
|
||||||
|
st = json.loads(DISCOVERY_STATE.read_text(encoding="utf-8"))
|
||||||
|
for s in st.get("found", []):
|
||||||
|
u = s.get("url", "")
|
||||||
|
if u.startswith("http") and "t.me" not in u and "github.com" not in u:
|
||||||
|
cands.append({"url": u, "topic": infer_topic(u, s.get("name", "")), "name": s.get("name", "")})
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
for page in FEEDSPOT_PAGES:
|
||||||
|
try:
|
||||||
|
r = requests.get(page, headers=UA, timeout=15)
|
||||||
|
for u in re.findall(r"\*\*Forum\*\*\s*\[([^\]]+)\]\((https?://[^)]+)\)", r.text):
|
||||||
|
cands.append({"url": u[1], "topic": infer_topic(u[1], u[0]), "name": u[0]})
|
||||||
|
for u in re.findall(r"\[\w[^\]]*Forum[^\]]*\]\((https?://[^)]+)\)", r.text):
|
||||||
|
cands.append({"url": u, "topic": "cracking"})
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
time.sleep(1)
|
||||||
|
return cands
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
dry = "--dry" in sys.argv
|
||||||
|
seeds_only = "--seeds-only" in sys.argv
|
||||||
|
max_add = 15
|
||||||
|
if "--max" in sys.argv:
|
||||||
|
max_add = int(sys.argv[sys.argv.index("--max") + 1])
|
||||||
|
|
||||||
|
extra = load_extra()
|
||||||
|
have_urls = existing_urls()
|
||||||
|
have_doms = {domain_of(u) for u in have_urls} | {domain_of(s["url"]) for s in extra}
|
||||||
|
cands = collect_candidates(seeds_only)
|
||||||
|
print(f"[promote] candidates: {len(cands)} | extra now: {len(extra)}")
|
||||||
|
|
||||||
|
added = 0
|
||||||
|
for c in cands:
|
||||||
|
if added >= max_add:
|
||||||
|
break
|
||||||
|
url = c["url"].split("?utm")[0].rstrip("#")
|
||||||
|
dom = domain_of(url)
|
||||||
|
if url.lower() in have_urls or dom in have_doms:
|
||||||
|
continue
|
||||||
|
alive, final, status = probe(url)
|
||||||
|
if not alive:
|
||||||
|
log({"at": datetime.now(timezone.utc).isoformat(), "url": url, "verdict": "DEAD", "status": status})
|
||||||
|
print(f" DEAD {status} {dom}")
|
||||||
|
continue
|
||||||
|
up = upgrade_url(final if final != url else url)
|
||||||
|
have_doms.add(dom)
|
||||||
|
have_urls.add(up.lower())
|
||||||
|
sid = re.sub(r"[^a-z0-9]+", "-", dom.replace(".", "-")).strip("-")[:40]
|
||||||
|
entry = {"id": f"auto-{sid}", "url": up, "topic": c.get("topic") or infer_topic(up, c.get("name", "")),
|
||||||
|
"auto": True, "added": datetime.now(timezone.utc).isoformat()[:10]}
|
||||||
|
log({"at": entry["added"], "url": url, "verdict": "PROMOTED", "final": up, "via": status})
|
||||||
|
print(f" ADD {dom} -> {up}")
|
||||||
|
if not dry:
|
||||||
|
extra.append(entry)
|
||||||
|
added += 1
|
||||||
|
time.sleep(0.5)
|
||||||
|
|
||||||
|
if not dry and added:
|
||||||
|
save_extra(extra)
|
||||||
|
print(f"[promote] {'(dry) ' if dry else ''}added: {added} | extra total: {len(extra)}")
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
raise SystemExit(main())
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
requests>=2.31
|
||||||
|
|
||||||
|
# опционально — только для feed.py (постинг в Telegram-канал):
|
||||||
|
# telethon>=1.34
|
||||||
+642
@@ -0,0 +1,642 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "lolz-rassylka",
|
||||||
|
"url": "https://lolz.live/tags/rassylka/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lolz-spam",
|
||||||
|
"url": "https://lolz.live/tags/spam/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lolz-telegram",
|
||||||
|
"url": "https://lolz.live/tags/rassylka-telegram-2/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lolz-traffic",
|
||||||
|
"url": "https://lolz.live/tags/trafik-telegram-2/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lolz-prodvizhenie",
|
||||||
|
"url": "https://lolz.live/tags/prodvizhenie/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lolz-parsing",
|
||||||
|
"url": "https://lolz.live/tags/parsig/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lolz-spam-tg",
|
||||||
|
"url": "https://lolz.live/tags/spam-telegram-3/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lolz-chaty-tg",
|
||||||
|
"url": "https://lolz.live/tags/chaty-tg/",
|
||||||
|
"topic": "chats"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lolz-bot-tg",
|
||||||
|
"url": "https://lolz.live/tags/bot-telegram-3/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crackingx-combo",
|
||||||
|
"url": "https://crackingx.com/forums/5/",
|
||||||
|
"topic": "combo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crackingx-configs",
|
||||||
|
"url": "https://crackingx.com/forums/9/",
|
||||||
|
"topic": "configs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crackingx-tools",
|
||||||
|
"url": "https://crackingx.com/forums/23/",
|
||||||
|
"topic": "tools"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "xreactor-combo",
|
||||||
|
"url": "https://xreactor.org/forums/combolists.152/",
|
||||||
|
"topic": "combo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "xreactor-configs",
|
||||||
|
"url": "https://xreactor.org/forums/silverbullet-configs.246/",
|
||||||
|
"topic": "configs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "xreactor-tools",
|
||||||
|
"url": "https://xreactor.org/forums/tools.45/",
|
||||||
|
"topic": "tools"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crdpro-tools",
|
||||||
|
"url": "https://crdpro.cc/tags/tools/",
|
||||||
|
"topic": "carding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crdpro-cc",
|
||||||
|
"url": "https://crdpro.cc/forums/cc-cvv-fullz-accounts-cc-check.45/",
|
||||||
|
"topic": "carding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "trafficultras-main",
|
||||||
|
"url": "https://trafficultras.com/forum/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "trafficultras-prodam",
|
||||||
|
"url": "https://trafficultras.com/forum/category/prodam",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "trafficultras-uslugi",
|
||||||
|
"url": "https://trafficultras.com/forum/category/uslugi",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "bhw-telegram-software",
|
||||||
|
"url": "https://www.blackhatworld.com/seo/up-to-date-list-of-specialized-software-for-telegram.1642970/",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "bhw-social-media",
|
||||||
|
"url": "https://www.blackhatworld.com/forums/social-media.200/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "bhw-marketplace",
|
||||||
|
"url": "https://www.blackhatworld.com/forums/misc.18/",
|
||||||
|
"topic": "tools"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "addset-main",
|
||||||
|
"url": "https://addset.ru/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "fb-killa-main",
|
||||||
|
"url": "https://fb-killa.pro/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "forum-x-main",
|
||||||
|
"url": "https://forum-x.com/forum/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "afflift-main",
|
||||||
|
"url": "https://afflift.com/f/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crackingx-proxies",
|
||||||
|
"url": "https://crackingx.com/forums/7/",
|
||||||
|
"topic": "proxies"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cracked-to",
|
||||||
|
"url": "https://cracked.io/",
|
||||||
|
"topic": "cracking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "altenen",
|
||||||
|
"url": "https://altenens.is/",
|
||||||
|
"topic": "carding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cardvilla",
|
||||||
|
"url": "https://cardvilla.cc/",
|
||||||
|
"topic": "carding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cybercarders",
|
||||||
|
"url": "https://cybercarders.eu/",
|
||||||
|
"topic": "carding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "shadowcarders",
|
||||||
|
"url": "https://shadowcarders.com/",
|
||||||
|
"topic": "carding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "carders-biz",
|
||||||
|
"url": "https://carders.biz/",
|
||||||
|
"topic": "carding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ascarding",
|
||||||
|
"url": "https://ascarding.net/",
|
||||||
|
"topic": "carding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "xakerplus",
|
||||||
|
"url": "https://xakerplus.com/",
|
||||||
|
"topic": "hacking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lozerix",
|
||||||
|
"url": "https://lozerix.com/",
|
||||||
|
"topic": "hacking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "zhyk",
|
||||||
|
"url": "https://zhyk.org/",
|
||||||
|
"topic": "hacking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "zenno-club",
|
||||||
|
"url": "https://zenno.club/discussion/tags/arbitrazh-trafika/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "partnerkin-blog",
|
||||||
|
"url": "https://partnerkin.com/blog/articles",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "afftimes-blog",
|
||||||
|
"url": "https://afftimes.com/articles/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cpa-rip",
|
||||||
|
"url": "https://cpa.rip/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cpa-live",
|
||||||
|
"url": "https://cpa.live/articles/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "gdetraffic",
|
||||||
|
"url": "https://gdetraffic.com/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "affy-group",
|
||||||
|
"url": "https://affy.group/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "conversion-im",
|
||||||
|
"url": "https://conversion.im/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "warrior-forum",
|
||||||
|
"url": "https://www.warriorforum.com/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "digitalpoint",
|
||||||
|
"url": "https://forums.digitalpoint.com/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cpaelites",
|
||||||
|
"url": "https://www.cpaelites.com/forum/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "hackforums",
|
||||||
|
"url": "https://hackforums.net/",
|
||||||
|
"topic": "hacking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crackingorg",
|
||||||
|
"url": "https://cracking.org/",
|
||||||
|
"topic": "cracking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crackingsoul",
|
||||||
|
"url": "https://crackingsoul.com/",
|
||||||
|
"topic": "cracking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tele-sender-blog",
|
||||||
|
"url": "https://tele-sender.com/blog/",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crmchat-blog",
|
||||||
|
"url": "https://crmchat.ai/blog/",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "teleboost-blog",
|
||||||
|
"url": "https://teleboost.app/blog/",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "reddit-telegrambots",
|
||||||
|
"url": "https://www.reddit.com/r/TelegramBots/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "reddit-telegram",
|
||||||
|
"url": "https://www.reddit.com/r/Telegram/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "reddit-hacking",
|
||||||
|
"url": "https://www.reddit.com/r/hacking/",
|
||||||
|
"topic": "hacking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "reddit-netsec",
|
||||||
|
"url": "https://www.reddit.com/r/netsec/",
|
||||||
|
"topic": "hacking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "reddit-osint",
|
||||||
|
"url": "https://www.reddit.com/r/OSINT/",
|
||||||
|
"topic": "osint"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crackingorg-combo",
|
||||||
|
"url": "https://cracking.org/forums/combolists.60/",
|
||||||
|
"topic": "combo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crackingorg-configs",
|
||||||
|
"url": "https://cracking.org/forums/cracking-configs.19/",
|
||||||
|
"topic": "configs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crackingorg-tools",
|
||||||
|
"url": "https://cracking.org/forums/cracking-tools.18/",
|
||||||
|
"topic": "tools"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lzt-market-tg",
|
||||||
|
"url": "https://lzt.market/telegram/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lolz-invite-tg",
|
||||||
|
"url": "https://lolz.live/tags/invajt-v-telegram-2/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lolz-inviting",
|
||||||
|
"url": "https://lolz.live/tags/invajting/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lolz-parsing-tg",
|
||||||
|
"url": "https://lolz.live/tags/parsing-telegram-2/",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "sourceforge-telegram",
|
||||||
|
"url": "https://sourceforge.net/directory/telegram-bots/",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-abuz-ai-soft",
|
||||||
|
"url": "https://t.me/s/Abuz_ai_soft",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-jebusblack",
|
||||||
|
"url": "https://t.me/s/jebusblack",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "habr-telegram",
|
||||||
|
"url": "https://habr.com/ru/search/?q=telegram+парсинг+софт&target_type=posts&order=date",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "teletype-tg",
|
||||||
|
"url": "https://teletype.in/search?query=telegram+софт",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "youtube-tg-software",
|
||||||
|
"url": "https://www.youtube.com/results?search_query=telegram+marketing+software+2026&sp=CAISBAgCEAE%253D",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "medium-tg-bots",
|
||||||
|
"url": "https://medium.com/search?q=telegram+bot+automation+2026",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tgstat-ratings",
|
||||||
|
"url": "https://tgstat.ru/ratings/chats/",
|
||||||
|
"topic": "chats"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "carder-su",
|
||||||
|
"url": "https://carder.su/",
|
||||||
|
"topic": "carding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "procarders",
|
||||||
|
"url": "https://procarders.com/",
|
||||||
|
"topic": "carding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "darkpro-net",
|
||||||
|
"url": "https://darkpro.net/",
|
||||||
|
"topic": "carding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tuts4you",
|
||||||
|
"url": "https://tuts4you.com/",
|
||||||
|
"topic": "reversing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "forum-reversing",
|
||||||
|
"url": "https://forum.tuts4you.com/",
|
||||||
|
"topic": "reversing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "exetools",
|
||||||
|
"url": "https://forum.exetools.com/",
|
||||||
|
"topic": "reversing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tlgrm-channels",
|
||||||
|
"url": "https://tlgrm.eu/channels",
|
||||||
|
"topic": "chats"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "telemetr-channels",
|
||||||
|
"url": "https://telemetr.me/channels",
|
||||||
|
"topic": "chats"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cpamafia-forum",
|
||||||
|
"url": "https://cpamafia.pro/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cpamafia-blog",
|
||||||
|
"url": "https://cpamafia.top/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-cpa-mafia",
|
||||||
|
"url": "https://t.me/s/cpa_mafia",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-cpalike",
|
||||||
|
"url": "https://t.me/s/cpalike",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-trafficcardinal",
|
||||||
|
"url": "https://t.me/s/trafficcardinal",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-skanka888",
|
||||||
|
"url": "https://t.me/s/skanka888",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-arbitraj-chat",
|
||||||
|
"url": "https://t.me/s/arbitraj_chat",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "vk-telegram-promo",
|
||||||
|
"url": "https://m.vk.com/search?c%5Bq%5D=продвижение+telegram+софт&c%5Bsection%5D=auto",
|
||||||
|
"topic": "telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "forobeta",
|
||||||
|
"url": "https://forobeta.com/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "forexfactory",
|
||||||
|
"url": "https://www.forexfactory.com/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "gpwa-forum",
|
||||||
|
"url": "https://www.gpwa.org/forum/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "casinomeister",
|
||||||
|
"url": "https://www.casinomeister.com/forums/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "babypips-forum",
|
||||||
|
"url": "https://forums.babypips.com/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "reddit-onlyfansadvice",
|
||||||
|
"url": "https://www.reddit.com/r/onlyfansadvice/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ofm-tools-github",
|
||||||
|
"url": "https://github.com/ofmtools/awesome-ofm-tools",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "searchengines-guru",
|
||||||
|
"url": "https://searchengines.guru/",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "hardforum",
|
||||||
|
"url": "https://hardforum.com/",
|
||||||
|
"topic": "hacking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "bitcointalk-telegram",
|
||||||
|
"url": "https://bitcointalk.org/index.php?board=238.0",
|
||||||
|
"topic": "traffic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "github-awesome-telegram-bots",
|
||||||
|
"url": "https://github.com/telegram-bot-sdk/awesome-telegram-bots",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "github-awesome-telegram-osint",
|
||||||
|
"url": "https://github.com/ItIsMeCall911/Awesome-Telegram-OSINT",
|
||||||
|
"topic": "osint"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "sendpulse-telegram-blog",
|
||||||
|
"url": "https://sendpulse.com/blog/telegram-marketing-tools",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "softwaresuggest-telegram",
|
||||||
|
"url": "https://www.softwaresuggest.com/telegram-marketing-software",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tacticaldatamanager-blog",
|
||||||
|
"url": "https://tacticaldatamanager.com/blog",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "statiko-telegram-blog",
|
||||||
|
"url": "https://statiko.io/blog/telegram-anti-spam-bot",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tghero-blog",
|
||||||
|
"url": "https://tghero.pro/telegram-marketing-tools/",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "teleboost-tools",
|
||||||
|
"url": "https://teleboost.app/blog/best-telegram-outreach-tools-2026",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "enreach-telegram",
|
||||||
|
"url": "https://www.enreach.ai/insights/best-telegram-outreach-tools",
|
||||||
|
"topic": "software"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "xreactor-ob-configs",
|
||||||
|
"url": "https://xreactor.org/forums/openbullet-configs.26/",
|
||||||
|
"topic": "configs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "xreactor-ob2-configs",
|
||||||
|
"url": "https://xreactor.org/forums/openbullet-2-configs.218/",
|
||||||
|
"topic": "configs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "xreactor-database",
|
||||||
|
"url": "https://xreactor.org/forums/database.164/",
|
||||||
|
"topic": "combo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "xreactor-accounts",
|
||||||
|
"url": "https://xreactor.org/forums/accounts-section.168/",
|
||||||
|
"topic": "accounts"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "nulledbb",
|
||||||
|
"url": "https://nulledbb.com/syndication.php?limit=50",
|
||||||
|
"topic": "combo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cracking-forums-com",
|
||||||
|
"url": "http://www.cracking-forums.com/syndication.php?limit=50",
|
||||||
|
"topic": "cracking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "eleaks",
|
||||||
|
"url": "https://eleaks.to/",
|
||||||
|
"topic": "cracking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "crackiansleaks",
|
||||||
|
"url": "https://crackiansleaks.com/",
|
||||||
|
"topic": "configs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "niflheim",
|
||||||
|
"url": "https://niflheim.world/",
|
||||||
|
"topic": "cracking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-openbullethubs",
|
||||||
|
"url": "https://t.me/s/openbullethubs",
|
||||||
|
"topic": "configs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-communityhubs",
|
||||||
|
"url": "https://t.me/s/CommunityHubs",
|
||||||
|
"topic": "configs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-stormhub",
|
||||||
|
"url": "https://t.me/s/STORMHub",
|
||||||
|
"topic": "configs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-datavpn010",
|
||||||
|
"url": "https://t.me/s/datavpn010",
|
||||||
|
"topic": "combo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-vourcher",
|
||||||
|
"url": "https://t.me/s/vourchertelegram",
|
||||||
|
"topic": "accounts"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-myboys",
|
||||||
|
"url": "https://t.me/s/myboys23456",
|
||||||
|
"topic": "accounts"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-ip3060",
|
||||||
|
"url": "https://t.me/s/ip3060",
|
||||||
|
"topic": "accounts"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-xreactor-guards",
|
||||||
|
"url": "https://t.me/s/xReactor_Guards",
|
||||||
|
"topic": "cracking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tg-xreactor-clouds",
|
||||||
|
"url": "https://t.me/s/xREACTOR_CLOUDS",
|
||||||
|
"topic": "cracking"
|
||||||
|
}
|
||||||
|
]
|
||||||
+1115
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user