How libowen371425-crypto/trendradar works
TrendRadar aggregates trending-news data into dated text and HTML reports, with configurable platforms, keyword filtering, scheduled notification modes, and an MCP server for querying and analyzing stored news. The main crawler and notification implementation is concentrated in main.py, but its internals were not excerpted, so its detailed calls and integrations are not mapped. MCP relationships below are limited to references in the source index or shown excerpts; the README excerpt documents product capabilities but not their wiring.
Main entry points: data_service.py Data access · main.py Crawler and notifier · server.py MCP server · validators.py Parameter validation
Components 18
Collection and reports
- Crawler and notifier
main.py - Crawler configuration
config/config.yaml - Tracked keywords
config/frequency_words.txt - Dated news reports
output
MCP interface
- MCP server
mcp_server/server.py
Data services
- Data access
mcp_server/services/data_service.py - Report and config parser
mcp_server/services/parser_service.py - In-memory cache
mcp_server/services/cache_service.py - Parameter validation
mcp_server/utils/validators.py - Date parsing
mcp_server/utils/date_parser.py
Query and analysis
- Data queries
mcp_server/tools/data_query.py - News analytics
mcp_server/tools/analytics.py - News search
mcp_server/tools/search_tools.py - Config management
mcp_server/tools/config_mgmt.py - System operations
mcp_server/tools/system.py
Other components
- User
- News platforms
- Notification channels
Connections 25
- User → Crawler and notifier: runs monitoring
- Crawler and notifier → News platforms: fetches trends
- Crawler and notifier → Crawler configuration: reads settings
- Crawler and notifier → Tracked keywords: uses tracked terms
- Crawler and notifier → Dated news reports: generates reports
- Crawler and notifier → Notification channels: sends notifications
- User → MCP server: requests tools
mcp_server/server.py - MCP server → Data queries: dispatches tools
mcp_server/server.py - MCP server → News analytics: dispatches tools
mcp_server/server.py - MCP server → News search: dispatches tools
mcp_server/server.py - MCP server → Config management: dispatches tools
mcp_server/server.py - MCP server → System operations: dispatches tools
mcp_server/server.py - Data queries → Data access: queries data
mcp_server/tools/data_query.py - News analytics → Data access: analyzes data
mcp_server/tools/analytics.py - News search → Data access: searches data
mcp_server/tools/search_tools.py - Config management → Data access: reads config
mcp_server/tools/config_mgmt.py - System operations → Data access: uses data service
mcp_server/tools/system.py - Data access → Report and config parser: loads report data
mcp_server/services/data_service.py - Data access → In-memory cache: caches results
mcp_server/services/data_service.py - Report and config parser → In-memory cache: checks cached data
mcp_server/services/parser_service.py - Report and config parser → Dated news reports: reads dated text
mcp_server/services/parser_service.py - Data queries → Parameter validation: validates inputs
mcp_server/tools/data_query.py - News search → Parameter validation: validates inputs
mcp_server/tools/search_tools.py - Parameter validation → Date parsing: parses dates
mcp_server/utils/validators.py - Parameter validation → Crawler configuration: loads platforms
mcp_server/utils/validators.py