<?php
// SEO and performance optimizations
$page_title = "Data Scraping Services UK | Professional & Accurate";
$page_description = "Professional data scraping services for UK businesses. We extract, clean, and structure data from any source with 99.8% accuracy. GDPR compliant. Get a ...";
$canonical_url = "https://ukdataservices.co.uk/data-scraping-services/";
$keywords = "data scraping services, data extraction UK, data mining services, database scraping, API data extraction, data processing UK, data cleaning services, structured data extraction";
$author = "UK Data Services";
$og_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo.png";

// Security headers (same as other pages)
header('X-Frame-Options: DENY');
header('X-Content-Type-Options: nosniff');
header('Referrer-Policy: strict-origin-when-cross-origin');
header('Permissions-Policy: geolocation=(), microphone=(), camera=()');
header('Strict-Transport-Security: max-age=31536000; includeSubDomains');
header('Content-Security-Policy: default-src "self"; script-src "self" "unsafe-inline" https://cdnjs.cloudflare.com https://www.googletagmanager.com https://www.google-analytics.com https://www.clarity.ms https://www.google.com https://www.gstatic.com; style-src "self" "unsafe-inline" https://fonts.googleapis.com; font-src "self" https://fonts.gstatic.com; img-src "self" data: https://www.google-analytics.com; connect-src "self" https://www.google-analytics.com https://analytics.google.com https://region1.google-analytics.com https://www.google.com; frame-src https://www.google.com;');
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo htmlspecialchars($page_title); ?></title>
    <meta name="description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta name="keywords" content="<?php echo htmlspecialchars($keywords); ?>">
    <meta name="author" content="<?php echo htmlspecialchars($author); ?>">
    <meta name="google-site-verification" content="la6e0_PDdHFkUn8NbHI-cMofozMcxtgrf73zwqKz6Ec" />
    <meta name="robots" content="index, follow">
    <meta name="googlebot" content="index, follow">
    
    <link rel="canonical" href="<?php echo htmlspecialchars($canonical_url); ?>">
    
    <!-- Open Graph / Social Media -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="<?php echo htmlspecialchars($canonical_url); ?>">
    <meta property="og:title" content="<?php echo htmlspecialchars($page_title); ?>">
    <meta property="og:description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta property="og:image" content="<?php echo htmlspecialchars($og_image); ?>">
    
    <!-- Twitter Card -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="<?php echo htmlspecialchars($page_title); ?>">
    <meta name="twitter:description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta name="twitter:image" content="<?php echo htmlspecialchars($og_image); ?>">
    
    <!-- Favicon -->
    <link rel="icon" type="image/x-icon" href="/assets/images/favicon.ico">
    <link rel="apple-touch-icon" sizes="180x180" href="/assets/images/apple-touch-icon.png">
    
    <!-- CSS -->
    <link rel="stylesheet" href="/assets/css/main.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap">
    
    <!-- Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'G-XXXXXXXXXX');
    </script>
</head>
<body>
    <?php include_once __DIR__ . '/../includes/header.php'; ?>
    
    <main class="container">
        <section class="hero">
            <h1>Data Scraping Services</h1>
            <p class="subtitle">Extract, clean, and structure data from any source with 99.8% accuracy</p>
            
            <div class="stats-grid">
                <div class="stat">
                    <div class="stat-number">118</div>
                    <div class="stat-label">Monthly Search Impressions</div>
                </div>
                <div class="stat">
                    <div class="stat-number">99.8%</div>
                    <div class="stat-label">Data Accuracy Rate</div>
                </div>
                <div class="stat">
                    <div class="stat-number">24/7</div>
                    <div class="stat-label">Data Processing</div>
                </div>
                <div class="stat">
                    <div class="stat-number">GDPR</div>
                    <div class="stat-label">Fully Compliant</div>
                </div>
            </div>
        </section>
        
        <section class="content-section">
            <h2>Comprehensive Data Scraping Solutions</h2>
            
            <div class="features-grid">
                <div class="feature">
                    <h3>Website Data Extraction</h3>
                    <p>Extract data from websites, portals, and online platforms with complex structures and JavaScript rendering.</p>
                </div>
                <div class="feature">
                    <h3>API Integration</h3>
                    <p>Connect to REST APIs, GraphQL endpoints, and web services for real-time data collection.</p>
                </div>
                <div class="feature">
                    <h3>Database Scraping</h3>
                    <p>Extract and migrate data from legacy databases, CRM systems, and enterprise applications.</p>
                </div>
                <div class="feature">
                    <h3>Data Processing</h3>
                    <p>Clean, validate, and structure raw data into usable formats (CSV, JSON, XML, SQL).</p>
                </div>
            </div>
        </section>
        
        <section class="content-section">
            <h2>Data Delivery Formats</h2>
            
            <div class="formats-grid">
                <div class="format">
                    <h3>CSV/Excel</h3>
                    <p>Spreadsheet-ready data for business analysis and reporting.</p>
                </div>
                <div class="format">
                    <h3>JSON/XML</h3>
                    <p>Structured data for APIs, web applications, and system integration.</p>
                </div>
                <div class="format">
                    <h3>Database</h3>
                    <p>Direct insertion into PostgreSQL, MySQL, MongoDB, or data warehouses.</p>
                </div>
                <div class="format">
                    <h3>Cloud Storage</h3>
                    <p>Automated delivery to AWS S3, Google Cloud, or Azure Blob Storage.</p>
                </div>
            </div>
        </section>
        
        <section class="cta-section">
            <h2>Need Reliable Data Scraping?</h2>
            <p>Transform unstructured data into valuable business intelligence. Free consultation available.</p>
            <a href="/quote/" class="btn btn-primary">Get Free Quote</a>
            <p class="small-text">Try our <a href="/tools/scrapeability-checker/">free scrapeability checker</a> first</p>
        </section>
    </main>
    
    <?php include_once __DIR__ . '/../includes/footer.php'; ?>
</body>
</html>
