How pudeng163/netdisk2weixin works
This is a unified Baidu/Quark cloud-drive referral tool: it retrieves shared-resource listings, filters and selects items, saves them to the user’s drive, creates replacement share links, and sends results to WeChat Work. Users can run platform jobs from the CLI or Web UI, preview Quark selections, or replace links embedded in supplied text. The README documents the major workflow; some adapter and Web implementation details were not sampled, so unsupported internal calls are omitted.
Main entry points: quark.py Quark adapter · web_app.py Web backend · baidu.py Baidu adapter · main.py CLI entry
Components 18
Entry points
- CLI entry
main.py - Text replacer
core/text_replacer.py
Transfer workflow
- Baidu adapter
adapters/baidu.py - Quark adapter
adapters/quark.py
Shared services
- API cache
core/cache.py - Configuration
core/config.py - Logging
core/logger.py - WeChat notifier
core/notifier.py
Web management
- Web backend
web/web_app.py - Management UI
web/templates/index.html
Other components
- Operator
- Resource API
- Baidu drive
- Quark drive
- kuake CLI
- WeChat Work
- Share history
- Preview cache
Connections 29
- Operator → CLI entry: runs
README.md - CLI entry → Baidu adapter: dispatches
main.py - CLI entry → Quark adapter: dispatches
main.py - CLI entry → Text replacer: runs replacement
main.py - CLI entry → Web backend: starts
main.py - Operator → Web backend: manages
README.md - Web backend → Management UI: renders
web/web_app.py - Web backend → Baidu adapter: dispatches
web/web_app.py - Web backend → Quark adapter: dispatches
web/web_app.py - Web backend → Preview cache: stores preview
web/web_app.py - Web backend → Preview cache: loads preview
web/web_app.py - Baidu adapter → API cache: fetches listings
adapters/baidu.py - Quark adapter → API cache: fetches listings
adapters/quark.py - API cache → Resource API: requests resources
core/cache.py - Baidu adapter → Baidu drive: verifies and transfers
adapters/baidu.py - Quark adapter → Quark drive: saves and shares
adapters/quark.py - Quark adapter → kuake CLI: uploads PDF
adapters/quark.py - Baidu adapter → WeChat notifier: sends results
adapters/baidu.py - Quark adapter → WeChat notifier: sends results
adapters/quark.py - WeChat notifier → WeChat Work: posts notification
core/notifier.py - Quark adapter → Share history: records shares
adapters/quark.py - Text replacer → Baidu adapter: transfers links
core/text_replacer.py - Text replacer → Quark adapter: transfers links
core/text_replacer.py - Text replacer → Share history: writes results
core/text_replacer.py - Text replacer → WeChat notifier: pushes results
core/text_replacer.py - Baidu adapter → Configuration: loads settings
adapters/baidu.py - Quark adapter → Configuration: loads settings
adapters/quark.py - API cache → Configuration: uses cache path
core/cache.py - Logging → Configuration: uses log path
core/logger.py