# THE JOURNALIST - Codename: SCRIBE

**Content Generation Agent - Part of THE MONSTER SYSTEM**

The Journalist writes expert-level product reviews and articles on demand. Point him at a product, give him the info, and he'll produce professional content faster than any human.

## Quick Start

```bash
# Single article
python main.py --site askmarket --product "Product Name" --url "https://amazon.com/dp/ASIN" --info "specs..." --images "url1,url2,url3"

# Batch processing
python main.py --site askmarket --batch products.json

# Start API server
python main.py --api

# Check status
python main.py --status
```

## API Endpoints

Start server: `python main.py --api` (runs on port 5001)

### POST /write
Write single article:
```json
{
    "site": "askmarket",
    "name": "GEEKOM IT13 Mini PC",
    "amazon_url": "https://amazon.com/dp/B0XXXXXX",
    "product_info": "Intel i9-13900HK, 16GB RAM, 1TB SSD...",
    "category": "computers",
    "images": ["url1", "url2", "url3", "url4", "url5"]
}
```

### POST /batch
Write multiple articles:
```json
{
    "site": "askmarket",
    "products": [
        {"name": "...", "amazon_url": "...", ...},
        {"name": "...", "amazon_url": "...", ...}
    ]
}
```

### GET /status
Get journalist status

## Configured Sites

- **askmarket** - Product reviews (AskMarket.store)
- Add more sites in `/sites/` folder

## What It Does

1. Takes product name, Amazon URL, specs, images
2. Calls OpenAI (GHOST) to write expert review
3. Generates full HTML page with:
   - Product card with images
   - Rating breakdown
   - Specs table
   - Full review content
   - FAQ section
   - "Perfect For" section
   - Gallery
   - CTA buttons
4. Uploads via FTP to site
5. Updates products database
6. Pings Google/Bing for indexing

## File Structure

```
journalist/
├── main.py              # Main entry point
├── identity.py          # Agent identity & mission
├── core/
│   ├── article_generator.py  # AI article generation
│   └── publisher.py          # FTP & database
├── api/
│   └── server.py        # HTTP API server
└── sites/
    └── askmarket.json   # Site configuration
```

## Adding New Sites

Create a JSON file in `/sites/`:
```json
{
    "name": "Site Name",
    "url": "https://example.com",
    "ftp_host": "...",
    "ftp_user": "...",
    "ftp_pass": "...",
    "openai_key": "...",
    "affiliate_tag": "..."
}
```

---

*"Feed me info. I'll feed you content."* - SCRIBE
