How tgbot-collection/yyetsbot works
YYeTsBot combines a searchable film-and-TV resource website with a Telegram bot. The main user workflow is search or browse resources, view and share links, then sign in to save favorites or comment and report invalid links. The web server routes requests to feature handlers backed by MongoDB and Redis; search indexing and resource synchronization support discovery. Separate bot and resource-collection tools extend access and maintain catalog data. Relationships for sampled web routing and shared handler behavior are shown; unsampled integrations are omitted where their wiring is uncertain.
Main entry points: server.py HTTP server · handlers/base.py Handler base · databases/base.py MongoDB · comment.py Comments and reports
Components 27
Web application
- HTTP server
yyetsweb/server.py - Handler base
yyetsweb/handlers/base.py - Resource browsing
yyetsweb/handlers/resources.py - Comments and reports
yyetsweb/handlers/comment.py - User accounts
yyetsweb/handlers/user.py - Social sign-in
yyetsweb/handlers/oauth.py - Site features
yyetsweb/handlers/other.py - Douban features
yyetsweb/handlers/douban.py - Metrics API
yyetsweb/handlers/grafana.py
Data and discovery
- MongoDB
yyetsweb/databases/base.py - Redis and caching
yyetsweb/databases/base.py - Resource catalog
yyetsweb/databases/resources.py - Comment data
yyetsweb/databases/comment.py - User data
yyetsweb/databases/user.py - OAuth records
yyetsweb/databases/oauth.py - Search indexing
yyetsweb/databases/base.py
Telegram bot
- Telegram bot
yyetsbot/yyetsbot.py - Resource search
yyetsbot/fansub.py - Bot configuration
yyetsbot/config.py
Catalog operations
- Resource synchronization
yyetsweb/common/sync.py - Comment checks
yyetsweb/common/comments_check.py - Database export
yyetsweb/common/dump_db.py - Share-link collector
yyets/BagAndDrag/drag.py
Other components
- Website user
- Telegram user
- Search user-submitted resources
- OAuth providers
Connections 30
- Website user → HTTP server: uses website
- HTTP server → Resource browsing: routes requests
yyetsweb/server.py - HTTP server → Comments and reports: routes requests
yyetsweb/server.py - HTTP server → User accounts: routes requests
yyetsweb/server.py - HTTP server → Social sign-in: routes requests
yyetsweb/server.py - HTTP server → Site features: routes requests
yyetsweb/server.py - HTTP server → Douban features: routes requests
yyetsweb/server.py - HTTP server → Metrics API: routes requests
yyetsweb/server.py - Resource browsing → Handler base: inherits
yyetsweb/handlers/base.py - Comments and reports → Handler base: inherits
yyetsweb/handlers/base.py - User accounts → Handler base: inherits
yyetsweb/handlers/base.py - Social sign-in → Handler base: inherits
yyetsweb/handlers/base.py - Comments and reports → Comment checks: checks spam
- Social sign-in → OAuth providers: authenticates with
yyetsweb/handlers/oauth.py - Search user-submitted resources → Telegram bot: searches via
- Telegram user → Telegram bot: uses bot
- Telegram bot → Resource search: delegates search
yyetsbot/yyetsbot.py - Resource search → Bot configuration: reads settings
yyetsbot/fansub.py - Handler base → MongoDB: creates data access
yyetsweb/handlers/base.py - Handler base → Redis and caching: uses cache
yyetsweb/handlers/base.py - Resource browsing → Resource catalog: loads resources
- Comments and reports → Comment data: handles comments
- User accounts → User data: handles accounts
- OAuth records → MongoDB: stores identities
yyetsweb/databases/oauth.py - Resource synchronization → MongoDB: writes catalog
yyetsweb/common/sync.py - Search indexing → MongoDB: indexes catalog data
yyetsweb/databases/base.py - HTTP server → Search indexing: starts indexing
yyetsweb/server.py - HTTP server → Resource synchronization: starts synchronization
yyetsweb/server.py - HTTP server → Database export: routes export
yyetsweb/server.py - Share-link collector → MongoDB: stores collected data