"""TLD-List.com scraper (placeholder - site blocks automated requests)."""
import logging
from datetime import datetime

from app.services.tld_scraper.base import BaseTLDScraper, TLDPriceData, ScraperError

logger = logging.getLogger(__name__)


class TLDListScraper(BaseTLDScraper):
    """
    Scraper for TLD-List.com.
    
    NOTE: TLD-List.com currently blocks automated requests (403).
    This scraper is a placeholder for future implementation if they
    open up access or we find a workaround.
    
    For now, use PorkbunScraper as the primary source.
    """
    
    name = "tld-list"
    base_url = "https://tld-list.com"
    
    async def scrape(self) -> list[TLDPriceData]:
        """
        Attempt to scrape TLD-List.com.
        
        Currently returns empty list as the site blocks automated requests.
        """
        logger.warning(
            "TLD-List.com blocks automated requests. "
            "Use PorkbunScraper as primary source instead."
        )
        return []
    
    async def health_check(self) -> bool:
        """Check if TLD-List.com is accessible."""
        # Currently always returns False due to blocking
        return False

