🎓 Course Title Generator

Extract course titles from web pages and generate 500 unique variations using Google API

📝 Manual Title Generation

🔗 URL Processing

📄 Sample HTML Page

Here's a sample HTML page with a course title in an <h1> tag:

<!DOCTYPE html>
<html>
<head>
    <title>Sample Course Page</title>
</head>
<body>
    <h1>Advanced Certificate in Precision Agriculture Agribusiness Management</h1>
    <p>Course description and content here...</p>
</body>
</html>

Application is running successfully on http://localhost:5260

🔧 Database: SQL Server (tbl_courses table)

🌐 Google API Integration: Ready

🔗 External Website API: Ready

Status: Operational

🔗 External Website Integration

Add this JavaScript code to external websites to automatically process course titles:

// Course Title Processor - Add this to your website
(function() {
    'use strict';
    
    const API_ENDPOINT = 'https://reactor.lsib.co.uk/api/process-page';
    
    function processPage() {
        const h1Element = document.querySelector('h1');
        if (!h1Element) return;
        
        const title = h1Element.textContent.trim();
        const url = window.location.href;
        
        if (isCoursePage(title, url)) {
            sendToAPI(title, url);
        }
    }
    
    function isCoursePage(title, url) {
        const courseKeywords = ['course', 'training', 'certificate', 'program', 'learning'];
        const titleLower = title.toLowerCase();
        return courseKeywords.some(keyword => titleLower.includes(keyword));
    }
    
    function sendToAPI(title, url) {
        fetch(API_ENDPOINT, {
            method: 'POST',
            headers: {'Content-Type': 'application/json'},
            body: JSON.stringify({
                title: title,
                url: url,
                timestamp: new Date().toISOString(),
                website: window.location.hostname
            })
        }).catch(err => console.log('Background processing'));
    }
    
    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', processPage);
    } else {
        processPage();
    }
})();

API Endpoint: https://reactor.lsib.co.uk/api/process-page

Test API: /api/test

API Config: /api/config

API Key: Loading...