How hect0x7/jmcomic-crawler-python works
JMComic is a Python API and downloader for retrieving comic albums, chapters, and processed images from JMComic’s web and mobile interfaces. The main workflow is initiated through the Python API or CLI, configured by an Option, then executed by a synchronous or asynchronous downloader using a client. Clients also expose documented search, account, comments, ranking, and favorites capabilities. Entities, shared toolkit utilities, task context, and plugins/features support the runtime. Some feature links are documented only at the product level; unsampled implementation details are not inferred.
Main entry points: jm_downloader.py Sync downloader · api.py Python API · jm_async_downloader.py Async downloader · jm_client_impl.py Sync clients
Components 17
User entry points
- CLI commands
src/jmcomic/cli.py - Python API
src/jmcomic/api.py
Download execution
- Sync downloader
src/jmcomic/jm_downloader.py - Async downloader
src/jmcomic/jm_async_downloader.py
JM access
- Client interface
src/jmcomic/jm_client_interface.py - Sync clients
src/jmcomic/jm_client_impl.py - Async client
src/jmcomic/jm_async_client.py
Configuration and models
- Download options
src/jmcomic/jm_option.py - Comic entities
src/jmcomic/jm_entity.py - Runtime configuration
src/jmcomic/jm_config.py - Parsing utilities
src/jmcomic/jm_toolkit.py - Error handling
src/jmcomic/jm_exception.py
Extensions and context
- Plugins
src/jmcomic/jm_plugin.py - Download features
src/jmcomic/jm_feature.py - Task context
src/jmcomic/jm_task_context.py
Other components
- User
- JMComic services
Connections 28
- User → CLI commands: runs commands
README.md - User → Python API: calls API
README.md - CLI commands → Python API: dispatches downloads
src/jmcomic/cli.py - Python API → Download options: creates options
src/jmcomic/api.py - Python API → Sync downloader: invokes downloads
src/jmcomic/api.py - Python API → Async downloader: invokes async downloads
src/jmcomic/api.py - Sync downloader → Download options: reads settings
src/jmcomic/jm_downloader.py - Async downloader → Sync downloader: reuses lifecycle
src/jmcomic/jm_async_downloader.py - Async downloader → Download options: creates client
src/jmcomic/jm_async_downloader.py - Sync downloader → Sync clients: requests comic data
- Async downloader → Async client: requests comic data
src/jmcomic/jm_async_downloader.py - Sync clients → Client interface: implements methods
src/jmcomic/jm_client_impl.py - Async client → Client interface: implements methods
src/jmcomic/jm_async_client.py - Sync clients → JMComic services: fetches comic data
README.md - Async client → JMComic services: fetches comic data
README.md - Sync clients → Comic entities: returns parsed entities
- Async client → Comic entities: returns parsed entities
src/jmcomic/jm_async_client.py - Download options → Sync clients: selects client
src/jmcomic/jm_option.py - Download options → Plugins: configures plugins
src/jmcomic/jm_option.py - Sync downloader → Download features: runs features
src/jmcomic/jm_downloader.py - Plugins → Sync downloader: hooks downloads
src/jmcomic/jm_plugin.py - Plugins → Async downloader: hooks async downloads
src/jmcomic/jm_plugin.py - Python API → Task context: sets task context
src/jmcomic/api.py - Sync downloader → Task context: tracks tasks
src/jmcomic/jm_downloader.py - Async downloader → Task context: binds worker context
src/jmcomic/jm_async_downloader.py - Sync clients → Parsing utilities: uses utilities
src/jmcomic/jm_client_impl.py - Comic entities → Runtime configuration: uses constants
src/jmcomic/jm_entity.py - Parsing utilities → Error handling: raises errors
src/jmcomic/jm_toolkit.py