Add Google Search service with advanced features

- Implement multi-method search (Custom Search API, SerpAPI, web scraping)
- Support up to 20 results with pagination
- Add date filtering and sorting capabilities
- Include full content fetching option
- Add country/language specific search support
- Implement Redis caching for performance
- Create comprehensive documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
jungwoo choi
2025-09-12 11:22:50 +09:00
parent 8866a90f65
commit 67cadb9aba
9 changed files with 980 additions and 0 deletions

View File

@ -0,0 +1,30 @@
from pydantic_settings import BaseSettings
from typing import Optional
class Settings(BaseSettings):
# Google Custom Search API 설정
google_api_key: Optional[str] = None
google_search_engine_id: Optional[str] = None
# SerpAPI 설정 (대안)
serpapi_key: Optional[str] = None
# Redis 캐싱 설정
redis_host: str = "redis"
redis_port: int = 6379
redis_db: int = 2
cache_ttl: int = 3600 # 1시간
# 검색 설정
max_results: int = 10
default_language: str = "ko"
default_country: str = "kr"
# 서비스 설정
service_name: str = "Google Search Service"
debug: bool = True
class Config:
env_file = ".env"
settings = Settings()