Skip to content

Repository files navigation

KELTIC KRAKEN

KELTIC KRAKEN

KELTIC KRAKEN

๐Ÿ‡ฎ๐Ÿ‡ช Real-time monitoring of drug trafficking, gang violence & organized crime across all 32 counties ๐Ÿ‡ฎ๐Ÿ‡ช
180+ rotating User-Agents ยท Auto-URL discovery ยท Anti-blocking system ยท Interactive 3D Map


๐Ÿ“‹ TABLE OF CONTENTS


WHAT IS KELTIC KRAKEN?

KELTIC KRAKEN is an open source criminal intelligence platform specifically designed for Ireland. The system:

# Action Description
1 Scans 78+ Irish newspapers (national, regional and local)
2 Detects News related to organized crime, drug trafficking and violence
3 Classifies Each incident by type (drugs, murder, gang violence, etc.)
4 Geolocates By county (Dublin, Cork, Galway, Belfast, etc.)
5 Visualizes Interactive 3D Globe Map with popups
6 Analyzes Generates statistics and interactive charts in real-time
7 Exports Data in JSON, CSV or HTML for external analysis

๐ŸŽฏ Who is it for?

User Benefit
Journalists Consolidated source of criminal information
Researchers Historical data for trend analysis
Criminologists Material for academic studies
Security forces Overview of criminal activity (ethical use)
Citizens Situational awareness of their community
Developers API and data for integrations

KEY FEATURES

๐ŸŒ Interactive 3D Map

Feature Description
Globe View Full 3D globe with all crime points
Fullscreen Expand to full screen with one click
Auto-close Popups Click another point to close previous popup
Clickable Titles Click any crime title to open original source
100% Functional Buttons All map controls work correctly
3000+ Points Show up to 3000 crime points simultaneously
Color-coded Each crime type has unique color

๐Ÿ”’ Anti-blocking

Feature Value Description
User-Agents 180+ Continuous rotation of browsers
Attempts 3 Retries per source before marking inactive
Delays 1.5-3.5s Random waits between requests
Timeout 10s Limit per request
Session Persistent Cookies and headers between requests
Retry Automatic Exponential backoff on failures

๐Ÿ”ง Self-repair

Feature Description
Auto-discovery URLs If a URL fails, automatically searches for the correct one
URL cache Saves discovered URLs for future runs
Smart pagination Automatically detects pagination patterns
Data repair Fixes missing coordinates and colors automatically
Duplicate removal Cleans duplicate entries

๐Ÿ–ฅ๏ธ Interface

Feature Description
Terminal Menu with 13 commands, colors and progress bars
Web dashboard 4 interactive charts (Chart.js)
3D Map MapLibre GL with full interactive controls
Bilingual Spanish and English fully supported
Responsive Works on mobile, tablet and desktop

๐Ÿ“Š Data

Feature Value
Sources 78+ newspapers
Counties 32 (all Ireland)
Crime types 9 categories
Keywords 100+ search terms
Map Points Up to 3000 simultaneous

๐Ÿ“ฅ Export

Format Use Compatibility
JSON Complete data All applications
CSV Spreadsheets Excel, Google Sheets, LibreOffice
HTML Professional report Any browser

SYSTEM REQUIREMENTS

Minimum vs Recommended

Component Minimum Recommended
OS Windows 10 / macOS 11 / Linux Windows 11 / macOS 14 / Ubuntu 22.04
Python 3.8 3.11+
RAM 1 GB 2 GB
Storage 200 MB 1 GB
Internet 5 Mbps 20 Mbps
GPU Integrated Dedicated (for 3D map)

Verify Python

# Linux / Mac
python3 --version

# Windows
python --version

If you don't have Python: Download Python 3.11+


STEP-BY-STEP INSTALLATION

๐Ÿง Linux / ๐ŸŽ Mac

# STEP 1: Clone the repository
git clone https://github.com/Condor2026/keltic-kraken
cd keltic-kraken

# STEP 2: Create virtual environment
python3 -m venv venv
source venv/bin/activate

# STEP 3: Install dependencies
pip install --upgrade pip
pip install -r requirements.txt

# STEP 4: Verify installation
python3 -c "import requests, bs4, flask, maplibregl; print('โœ… Everything correct')"

# STEP 5: Run
python3 keltic_kraken.py

๐ŸชŸ Windows

# STEP 1: Clone the repository
git clone https://github.com/Condor2026/keltic-kraken
cd keltic-kraken

# STEP 2: Create virtual environment
python -m venv venv
venv\Scripts\activate

# STEP 3: Install dependencies
pip install --upgrade pip
pip install -r requirements.txt

# STEP 4: Verify installation
python -c "import requests, bs4, flask; print('โœ… Everything correct')"

# STEP 5: Run
python keltic_kraken.py

๐Ÿณ Docker

# Build image
docker build -t keltic-kraken:v4.1 .

# Run container
docker run -p 5019:5019 keltic-kraken:v4.1

# Or with docker-compose
docker-compose up -d

FIRST USE - QUICK GUIDE

When running for the FIRST TIME, follow these steps:

1๏ธโƒฃ Choose execution mode

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  How do you want to run?                          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  [1] Terminal Mode (recommended for analysis)     โ”‚
โ”‚  [2] Web Mode (dashboard with 3D map)             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โžค Choose: 1

2๏ธโƒฃ VERIFY SOURCES (MANDATORY)

โžค Option: 8

What it does:

  • โœ… Verifies all 78+ sources one by one
  • โœ… Marks active those that work
  • โŒ Marks inactive those that fail
  • ๐Ÿ” Applies auto-discovery to dead URLs
  • ๐Ÿ’พ Saves discovered URLs in cache

Expected result:

๐Ÿ“Š RESULTS:
   Active sources: 68 out of 78
   Auto-discovery applied: 12 URLs found
   Cache saved for future runs

3๏ธโƒฃ SEARCH FOR CRIMES

โžค Option: 1

What it does:

  • Scans all active sources
  • Searches for crime-related keywords
  • Extracts titles, dates and locations
  • Classifies by crime type
  • Saves to local database

You will see:

๐Ÿ”ช KELTIC KRAKEN - SCANNING IRELAND
================================================================================
๐Ÿ“ฐ Irish Times (1/68)
   ๐Ÿ“ County: Dublin
   ๐Ÿ“„ Page 1... โœ“ 24 found
   ๐Ÿ“„ Page 2... โœ“ 18 found
   ๐Ÿ“Š Total in this source: 42 incidents

4๏ธโƒฃ VIEW RESULTS

โžค Option: 6
๐Ÿ“ฐ LATEST 20 INCIDENTS
================================================================================
 1. Man arrested after โ‚ฌ500k cocaine seizure in Dublin
      ๐Ÿ“… 2026-06-12 | ๐Ÿ“ Dublin | ๐Ÿ“ฐ Irish Times | ๐Ÿ’€ Severidad: 8/10

 2. Two charged over Kinahan-linked shooting in Cork
      ๐Ÿ“… 2026-06-11 | ๐Ÿ“ Cork | ๐Ÿ“ฐ Irish Examiner | ๐Ÿ’€ Severidad: 9/10

 3. Gardaรญ launch operation after body found in Galway
      ๐Ÿ“… 2026-06-11 | ๐Ÿ“ Galway | ๐Ÿ“ฐ RTร‰ | ๐Ÿ’€ Severidad: 10/10

5๏ธโƒฃ (OPTIONAL) WEB DASHBOARD WITH 3D MAP

โžค Option: 5

Open browser: http://localhost:5019


TERMINAL MENU COMMANDS

Option Command What it does When
1 ๐Ÿ” Search crimes Scans all active sources Daily
2 ๐Ÿ“Š Complete analysis Shows detailed statistics Post-search
3 ๐Ÿ”— Patterns Detects criminal concentrations Weekly
4 ๐Ÿ“ˆ Evolution Temporal trend chart Monthly
5 ๐ŸŒ Web server Starts dashboard on localhost On demand
6 ๐Ÿ“ฐ Latest 20 Lists recent incidents Quick
7 ๐Ÿ“ฅ Export Saves to JSON/CSV/HTML To share
8 ๐Ÿ” Verify Updates source status Weekly
9 ๐Ÿ“Š Distribution Percentages by type Post-search
10 ๐Ÿ“ˆ Advanced Metrics like density, trend Deep analysis
11 ๐Ÿงน Clean Removes duplicates If you notice repetitions
12 ๐Ÿ”ง Repair Data Fixes missing coordinates/colors If map doesn't show points
13 ๐Ÿ—‘๏ธ Exit Closes the application When finished

๐Ÿ“‹ Daily flow example

# Monday 9:00 AM
โžค 8    # Verify sources
โžค 1    # Search for new crimes
โžค 6    # View latest incidents
โžค 2    # View statistics
โžค 5    # (optional) Open web dashboard with 3D map

WEB DASHBOARD

When you run Option 5, a web server starts at http://localhost:5019

๐ŸŒ Interactive 3D Map

Feature Description
Globe View Full 3D globe showing all crime points
Color-coded Points Each crime type has unique color
Clustering Groups nearby points for clarity
Click Popups Shows crime details with source link
Fullscreen Expand map to full screen
Auto-rotate Automatically rotates globe
Reset View Returns to default view
3D Toggle Switch between 2D and 3D views

๐ŸŽจ Point Colors by Crime Type

Crime Type Color Icon
Drug Trafficking ๐Ÿ”ด #ff0000 ๐Ÿ’Š
Gang Violence ๐ŸŸฅ #ff4444 ๐Ÿ”ซ
Murder/Homicide โฌ› #000000 ๐Ÿ’€
Assault ๐ŸŸง #ff8c00 ๐Ÿ‘Š
Robbery/Theft ๐ŸŸจ #ffd700 ๐Ÿ’ฐ
Organized Crime ๐ŸŸช #800080 ๐Ÿ•ด๏ธ
Garda Operation ๐ŸŸฆ #0066cc ๐Ÿ‘ฎ
Weapon Offense ๐ŸŸฅ #990000 ๐Ÿ”ช
Other Crime โฌœ #666666 โ“

๐Ÿ“Š Chart 1: Incidents by County (Bars)

Element Description
Type Vertical bar chart
Data Incidents per county
Interaction Hover to see exact numbers
Utility Identify hotspots

๐Ÿฅง Chart 2: Crime Types (Donut)

Type Color Description
๐Ÿ’Š Drugs Dark red Drug trafficking, seizures, smuggling
๐Ÿ”ซ Gang Violence Red Gang violence (Kinahan, Hutch)
๐Ÿ’€ Murder Black Murders and homicides
๐Ÿ‘ฎ Garda Op Blue Police operations
๐Ÿ‘Š Assault Orange Assaults
๐Ÿ’ฐ Robbery Yellow Robberies and thefts
๐Ÿ•ด๏ธ Org Crime Purple Organized crime
๐Ÿ”ช Weapon Maroon Weapons offenses
โ“ Other Gray Other types

๐Ÿ“ˆ Chart 3: Monthly Trend (Line)

Element Description
Type Line chart with fill
Data Month by month evolution
Trend Goes up/down visually
Utility Detect seasonal patterns

๐Ÿ“Š Chart 4: Top Sources (Horizontal bars)

Element Description
Type Horizontal bars
Data Most active newspapers
Order From highest to lowest
Utility Identify most informative sources

๐Ÿ“‹ Incident list

Each card shows:

  • Full title of the news
  • Date of publication
  • County where it occurred
  • Source (newspaper)
  • Crime type with color
  • Severity level (1-10)
  • URL link to original source

๐ŸŽ›๏ธ Web controls

Button Function
๐Ÿ”„ UPDATE DATA Scans sources and updates
๐Ÿ“ฅ JSON Downloads data in JSON
๐Ÿ“ฅ CSV Downloads in CSV (Excel)
๐Ÿ“„ HTML REPORT Generates professional report
ALL All incidents
7D Last 7 days
30D Last 30 days
90D Last 90 days

GEOGRAPHIC COVERAGE

Republic of Ireland (26 counties)

County Sources Main media
Dublin 7 Irish Times, Irish Independent, RTร‰, Dublin Live
Cork 5 Irish Examiner, Cork Beo, Cork Independent
Galway 4 Galway Beo, Galway Advertiser, Connacht Tribune
Limerick 4 Limerick Leader, Limerick Post
Kerry 4 Kerryman, Radio Kerry
Donegal 4 Donegal Daily, Donegal News
Mayo 4 Mayo News, Connaught Telegraph
Wexford 4 Wexford People, Wexford Echo
Kildare 4 Kildare Now, KFM Radio
Tipperary 4 Tipperary Live, Tipp FM
Louth 4 Louth Live, LMFM
Waterford 3 Waterford News, Waterford Live
Clare 4 Clare Champion, Clare FM
Sligo 3 Sligo Champion, Ocean FM
Rest 2-3 Local media

Northern Ireland (6 counties)

County Sources Main media
Antrim (Belfast) 5 Belfast Telegraph, Irish News, Belfast Live
Derry/Londonderry 3 Derry Journal, Derry Now
Down 2 Down Recorder, Newry Reporter
Tyrone 2 Tyrone Times, Ulster Herald
Armagh 2 Armagh I, Lurgan Mail
Fermanagh 2 Fermanagh Herald, Impartial Reporter

๐Ÿ“Š Totals

Region Counties Sources
Republic of Ireland 26 ~62
Northern Ireland 6 ~16
TOTAL 32 78+

PROJECT STRUCTURE

keltic-kraken/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“„ keltic_kraken.py          # Main script (3000+ lines)
โ”œโ”€โ”€ ๐Ÿ“„ requirements.txt          # Python dependencies
โ”œโ”€โ”€ ๐Ÿ“„ README.md                 # This document
โ”œโ”€โ”€ ๐Ÿ“„ LICENSE                   # GPL v3
โ”œโ”€โ”€ ๐Ÿ“„ CHANGELOG.md              # Version history
โ”œโ”€โ”€ ๐Ÿ“„ CODE_OF_CONDUCT.md        # Community guidelines
โ”œโ”€โ”€ ๐Ÿ“„ LEGAL_ETHICAL_NOTICE.md   # Legal and ethical notice
โ”œโ”€โ”€ ๐Ÿ“„ Dockerfile                # Docker configuration
โ”œโ”€โ”€ ๐Ÿ“„ docker-compose.yml        # Docker Compose configuration
โ”œโ”€โ”€ ๐Ÿ“„ .gitignore                # Git ignore file
โ”œโ”€โ”€ ๐Ÿ“„ install.sh                # Linux/Mac installer
โ”œโ”€โ”€ ๐Ÿ“„ install.bat               # Windows installer
โ”œโ”€โ”€ ๐Ÿ“„ env.example               # Environment variables example
โ”‚
โ”œโ”€โ”€ ๐Ÿ“Š keltic_kraken_ireland.json   # Incidents database
โ”œโ”€โ”€ ๐Ÿ’พ keltic_kraken_backup.json    # Automatic backup
โ”œโ”€โ”€ ๐Ÿ—บ๏ธ url_cache_ireland.json       # Discovered URLs cache
โ”œโ”€โ”€ ๐Ÿ“ก estado_fuentes_ireland.json  # Source status
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ค keltic_kraken_export.json    # Manual export (JSON)
โ”œโ”€โ”€ ๐Ÿ“ค keltic_kraken_export.csv     # Manual export (CSV)
โ”œโ”€โ”€ ๐Ÿ“ค keltic_kraken_report.html    # Manual export (HTML)
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ docs/                         # Extra documentation
โ”‚   โ”œโ”€โ”€ usage.md
โ”‚   โ”œโ”€โ”€ api.md
โ”‚   โ””โ”€โ”€ screenshots/
โ”‚
โ””โ”€โ”€ ๐Ÿ“ images/                       # Images and assets
    โ””โ”€โ”€ kraken_imagen.jpg

Automatically generated files

File When What it contains
keltic_kraken_ireland.json 1st run All incidents
url_cache_ireland.json Auto-discovery Alternative URLs
estado_fuentes_ireland.json Option 8 Active/inactive status
keltic_kraken_backup.json Each save Backup copy

TROUBLESHOOTING

Error: "Module not found"

pip install -r requirements.txt

Error: "Connection timeout"

  • Check your internet connection
  • Increase timeout in code (line 180)
  • Some sources may be temporarily down

Error: "No data found"

  • Run Option 8 first (verify sources)
  • Wait for the complete scan to finish
  • Verify you have active sources

Error: "Map points not showing"

  • Run Option 12 (Repair Data)
  • This fixes missing coordinates and colors
  • Then restart the web server

Error: "Port 5019 already in use"

# Change port in code or kill the process
# Linux/Mac
lsof -ti:5019 | xargs kill -9

# Windows
netstat -ano | findstr :5019
taskkill /PID <PID> /F

Dashboard doesn't load

  • Make sure Flask is installed
  • Check that no firewalls are blocking
  • Try with http://127.0.0.1:5019

FREQUENTLY ASKED QUESTIONS

โ“ Is this legal?

Yes. The system:

  • Only accesses public data
  • Respects delays between requests
  • Does not overload servers
  • Does not violate security measures
  • Only uses public sections of newspapers

โ“ Can I use this for another country?

The system is designed for Ireland, but can be adapted:

  1. Change FUENTES_BASE (list of newspapers)
  2. Change PALABRAS_CLAVE_CRIMEN (local terms)
  3. Change COORDENADAS_CONDADOS (for country regions)
  4. Change TIPOS_CRIMEN (local categories)

โ“ Where is the data saved?

In keltic_kraken_ireland.json (readable JSON format)

โ“ Can I export the data?

Yes, three formats:

  • โžค 7 โ†’ Exports to JSON, CSV and HTML
  • ๐Ÿ“ฅ JSON button on web
  • ๐Ÿ“ฅ CSV button on web
  • ๐Ÿ“„ HTML REPORT button on web

โ“ Does it consume many resources?

No. Typical usage:

  • RAM: ~300-600 MB
  • CPU: ~10-20% during scraping
  • Storage: ~10-50 MB per month of data

โ“ Is there mobile support?

Yes. The web dashboard is responsive and works on:

  • iPhone (iOS)
  • Android
  • Tablet
  • iPad

โ“ How often should I run it?

  • Daily: To keep data updated
  • Weekly: For trend analysis
  • Monthly: For complete reports

โ“ Can I automate the runs?

Yes. Use cron (Linux/Mac) or Task Scheduler (Windows):

# Cron - run daily at 9 AM
0 9 * * * cd /path/keltic-kraken && python3 keltic_kraken.py --auto

LICENSE

GNU General Public License v3.0

Copyright (C) 2026 Condor2026 / SpectrumSecurity

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.

๐Ÿ”’ Permissions

Action Allowed
โœ… Commercial use Yes
โœ… Modification Yes
โœ… Distribution Yes
โœ… Private use Yes
โŒ Liability No
โŒ Warranty No

AUTHOR

Condor2026 ยท SpectrumSecurity


๐Ÿ‡ฎ๐Ÿ‡ช "With great power comes great responsibility" ๐Ÿ‡ฎ๐Ÿ‡ช
KELTIC KRAKEN v4.1 - Monitoring Ireland's criminal landscape

๐Ÿ“ CAMBIOS PRINCIPALES:

Elemento v3.0 v4.1
Versiรณn 3.0 4.1
Badges 24 28
Lรญneas de cรณdigo 2,250 3,000+
User-Agents 150+ 180+
Fuentes 85+ 78+
Puerto 5014 5019
Mapa No Sรญ (3D Globe)
Menรบ 12 opciones 13 opciones
Popups No Sรญ (autocerrantes)
Fullscreen No Sรญ
Reparaciรณn datos No Sรญ (opciรณn 12)

๐Ÿฆ… - Condor2026 Threat Security - ๐Ÿฆ