const fs = require('fs');

const locations = [
  { slug: 'porur', name: 'Porur', nearby: 'Karambakkam, Mugalivakkam' },
  { slug: 'kundrathur', name: 'Kundrathur', nearby: 'Kovur, Mangadu' },
  { slug: 'gerugambakkam', name: 'Gerugambakkam', nearby: 'Kolapakkam, Porur' },
  { slug: 'ramapuram', name: 'Ramapuram', nearby: 'Porur, K K Nagar' },
  { slug: 'iyyappanthangal', name: 'Iyyappanthangal', nearby: 'Kattupakkam, Numbal' },
  { slug: 'mugalivakkam', name: 'Mugalivakkam', nearby: 'Ramapuram, Manapakkam' },
  { slug: 'kolapakkam', name: 'Kolapakkam', nearby: 'Gerugambakkam, Manapakkam' },
  { slug: 'anakaputhur', name: 'Anakaputhur', nearby: 'Pammal, Pallavaram' },
  { slug: 'thiruverkadu', name: 'Thiruverkadu', nearby: 'Maduravoyal, Poonamallee' },
  { slug: 'kattupakkam', name: 'Kattupakkam', nearby: 'Iyyappanthangal, Poonamallee' },
  { slug: 'maduravoyal', name: 'Maduravoyal', nearby: 'Nerkundram, Vanagaram' }
];

const services = [
  { name: 'Ultrasound Scan', lowerName: 'ultrasound scan', desc: (loc) => `If you are looking for a highly reliable and clear ultrasound scan in ${loc.name}, Chennai, David Labs and Scans is your trusted diagnostic destination. We utilize the latest state-of-the-art sonography equipment to provide high-resolution imaging for abdominal, pelvic, and general body evaluations. Our experienced radiologists ensure that every ultrasound scan near ${loc.name} is conducted with the utmost care, prioritizing patient comfort and clinical accuracy. With affordable pricing, minimal waiting times, and detailed reports delivered swiftly, we help your consulting physician make well-informed healthcare decisions without any diagnostic delay.` },
  { name: 'Blood Test', lowerName: 'blood test', desc: (loc) => `For absolutely accurate and affordable blood tests in ${loc.name}, Chennai, David Labs offers a comprehensive, advanced pathology lab setup. From routine complete blood counts (CBC), diabetes screening, and thyroid profiles to complex biochemical evaluations, our NABL-accredited diagnostic laboratory guarantees the highest level of precision. When searching for a blood test lab near ${loc.name}, patients trust us for our rigorously hygienic sample collection process and exceptionally fast turnaround times. Getting your routine lab work done is now completely hassle-free, delivering dependable and verified reports right on time.` },
  { name: 'Digital X-Ray', lowerName: 'digital x-ray', desc: (loc) => `Experience fast, highly detailed, and low-radiation digital X-ray services right here in ${loc.name}, Chennai at David Labs and Scans. Whether you need a chest X-ray, joint imaging, or orthopedic bone scans, our advanced digital radiography machines capture precisely detailed internal images instantly. Choosing our center for a digital X-ray near ${loc.name} means you get immediate processing and digitally enhanced clarity that significantly aids in accurate orthopedic or pulmonary diagnostics. We maintain a completely safe, sterile environment while ensuring rapid results.` },
  { name: 'Pregnancy Scan', lowerName: 'pregnancy scan', desc: (loc) => `Expecting mothers seeking a safe, comfortable, and accurate pregnancy scan in ${loc.name}, Chennai can confidently rely on David Labs and Scans. We understand that maternal care requires a delicate touch, and our specialized imaging technology provides crystal-clear fetal monitoring, growth tracking, and anomaly screening scans. By choosing our dedicated fetal assessment services near ${loc.name}, you are assured of detailed consultations with experienced professionals. We prioritize your privacy and peace of mind by offering thoroughly detailed visual reports that capture every crucial milestone of your baby's development.` },
  { name: 'Cardiac Package', lowerName: 'cardiac package', desc: (loc) => `Take proactive control of your heart health with our comprehensive cardiac package in ${loc.name}, Chennai. Heart disease prevention starts with thorough screening, and David Labs and Scans brings together the most critical diagnostic cardiovascular tests into one highly affordable bundle. Evaluating your cardiovascular wellness near ${loc.name} has never been easier; our full package covers lipid profiling, structural heart imaging, and electrical rhythm tests. We empower our patients with a totally unified, in-depth cardiac risk assessment to catch potential issues early and keep their hearts beating strong.` },
  { name: 'ECG', lowerName: 'ecg', desc: (loc) => `Monitor your heart’s electrical activity instantly with a precision ECG in ${loc.name}, Chennai at David Labs and Scans. An electrocardiogram is a fundamental first step in evaluating chest pain, palpitations, or general rhythmic irregularities. Our clinical technicians are experts at conducting comfortable and completely painless ECG tests near ${loc.name}, ensuring completely accurate tracing of your heart’s rhythm. The fast procedure provides immediate printout results, giving your cardiologist the vital data they need instantly.` },
  { name: 'ECHO', lowerName: 'echo', desc: (loc) => `David Labs and Scans offers state-of-the-art echocardiogram (ECHO) testing in ${loc.name}, Chennai to evaluate your heart's structural integrity and pumping strength. Using advanced, non-invasive ultrasound waves, we map your heart valves and chambers in real-time. Patients looking for an ECHO near ${loc.name} choose us for our highly detailed cardiovascular scans and specialized reporting. This crucial structural analysis helps physicians accurately diagnose conditions like heart failure, valve disease, or congenital abnormalities without any invasive procedures.` },
  { name: 'PFT', lowerName: 'pft', desc: (loc) => `Assess your lung health and respiratory strength with our advanced Pulmonary Function Test (PFT) in ${loc.name}, Chennai. Whether you are dealing with asthma, chronic bronchitis, or general shortness of breath, David Labs and Scans provides highly sensitive spirometry equipment. Getting a reliable PFT near ${loc.name} is essential for measuring your total lung capacity and airflow correctly. Our trained staff will safely guide you through the breathing exercises to ensure the diagnostic readings are perfectly reflective of your actual pulmonary capability.` },
  { name: 'Allergy Test', lowerName: 'allergy test', desc: (loc) => `Identify exactly what is triggering your symptoms with a comprehensive, accurate allergy test in ${loc.name}, Chennai. At David Labs and Scans, we offer extensive panel testing for food, dust, dander, and environmental allergens using state-of-the-art pathology. By booking your detailed allergy test near ${loc.name}, you eliminate the guesswork behind chronic sneezing, skin rashes, or digestive discomfort. We deliver extremely comprehensive reporting that allows you and your doctor to construct a reliable, long-term defensive treatment plan.` },
  { name: 'Preventive Health Checkup', lowerName: 'preventive health checkup', desc: (loc) => `Invest in your long-term wellness with an affordable, full-body preventive health checkup in ${loc.name}, Chennai. David Labs and Scans has meticulously designed screening packages that evaluate all major organ functions—from liver and kidney health to diabetes and cholesterol levels. Undergoing a robust master health checkup near ${loc.name} gives you total peace of mind by catching underlying issues long before they become serious symptoms. Fast, private, and exceptionally thorough, our preventive profiles are the cornerstone of a healthier, happier life.` }
];

let output = `=====================================================
            DAVID LABS AND SCANS
            ALL 111 PAGES CONTENT DUMP
=====================================================

-----------------------------------------------------
PAGE 1: MAIN HUB INDEX PAGE (speciality.html)
-----------------------------------------------------
URL: /speciality.html

TITLE: Our Diagnostic Specialities
SUBTITLE: Providing accurate, reliable, and affordable medical testing services across Chennai.

David Labs and Scans
David Labs and Scans is a trusted diagnostic center in Chennai offering accurate, reliable, and affordable medical testing services. We provide a wide range of diagnostics including blood tests, ultrasound scans, digital X-rays, cardiac evaluations, and preventive health checkups.
With NABL-accredited standards and advanced medical equipment, we ensure precision in every test. Our experienced radiologists and lab professionals deliver fast and accurate reports to support better medical decisions.
We serve patients across Porur, Ramapuram, Kundrathur, Iyyappanthangal, Mugalivakkam, Kolapakkam, Anakaputhur, Thiruverkadu, Kattupakkam, and Maduravoyal. Patients searching for a diagnostic center near me in Chennai can rely on our trusted services.

Opening Times
We are open every day to serve our patients right when they need us. Early morning sample collections and late evening diagnostic services are available.
Monday - Saturday: 6:30 AM - 9:30 PM
Sunday: 6:30 AM - 2:00 PM

Our Service Locations
David Labs and Scans provides comprehensive diagnostic services across multiple centers and collection points in Chennai for your convenience.

Why Does David Scans & Labs Offer Services at Low Prices?
At David Labs and Scans, we believe that quality healthcare should be affordable and accessible to everyone. The cost of diagnosis should never prevent patients from getting the care they need.
We focus on efficient operations, high patient volume, and optimized workflows, allowing us to reduce costs without compromising on quality. By minimizing unnecessary expenses and eliminating intermediaries, we ensure that our services remain cost-effective.
Our goal is to provide accurate and reliable diagnostic services at prices that are affordable for all sections of society.

How Does David Scans and Labs Offer Services at a Lower Cost?
We use advanced automated systems and modern diagnostic equipment to improve efficiency and reduce manual errors. This helps us deliver faster results while keeping operational costs low.
By processing a large number of tests daily, we achieve economies of scale, reducing the cost per test. Our multiple branches across Chennai also help streamline operations and improve accessibility.
We follow a transparent pricing approach, ensuring patients pay only for the tests they need. This allows us to maintain affordability without compromising diagnostic accuracy.

=====================================================
PAGES 2 to 111: LOCAL SEO GENERATED SERVICE PAGES
=====================================================
`;

let pageNum = 2;

locations.forEach(loc => {
    services.forEach(srv => {
        output += `
-----------------------------------------------------
PAGE ${pageNum}: ${srv.name.toUpperCase()} IN ${loc.name.toUpperCase()}
-----------------------------------------------------
URL: /speciality/${loc.slug}/${srv.name.toLowerCase().replace(/ /g, '-')}.html

TITLE: ${srv.name} in ${loc.name}, Chennai
ACCESS TEXT: Our center is highly accessible from ${loc.nearby}, making it easy to schedule your visit with zero hassle.

MAIN SEO PARAGRAPH:
${srv.desc(loc)}

WHY DOES DAVID SCANS & LABS OFFER SERVICES AT LOW PRICES?
We focus on efficiency, high patient volume, and optimized operations to reduce cost without compromising quality.

HOW DOES DAVID SCANS AND LABS OFFER SERVICES AT A LOWER COST?
Using automation and scale, we reduce cost per test and deliver fast, accurate reports.

DAVID LABS AND SCANS:
David Labs and Scans is a trusted diagnostic center in Chennai offering accurate, reliable, and affordable medical testing services with NABL-accredited standards and advanced equipment.

OUR DIAGNOSTIC SPECIALITIES:
We provide a wide range of diagnostic services across Chennai.
`;
        pageNum++;
    });
});

fs.writeFileSync('ALL_PAGES_CONTENT.txt', output);
console.log('Saved ALL_PAGES_CONTENT.txt');
