The user wants to prepare the project for GitHub sharing. This involves:
- Verifying the
config.pyupdate (already done by user). - Cleaning up the project structure by moving "immature" or "unused" code (specifically the Bilibili-related parts) to a separate
legacy/orarchive/folder. - Ensuring the "Xueqiu Smart Momentum" core strategy is prominent.
- Committing the changes to Git.
- Create Archive: Create an
archive/bilibili_legacydirectory. - Move Legacy Code: Move Bilibili-related scripts and core modules to the archive.
scripts/bili/->archive/bilibili_legacy/scripts/core/bili_collector.py,core/ocr_validation.py, etc. ->archive/bilibili_legacy/core/- Root level scripts like
extract_video_keyframes.py,fetch_video_covers.py->archive/bilibili_legacy/scripts/
- Clean Root: Remove clutter files like
import asyncio.py,test_gemini.py,github_key(sensitive!). - Organize Xueqiu Scripts: Ensure
scripts/xueqiu/contains the latest strategies. - Update README: Briefly explain the new structure.
- Git Commit: Commit the cleanup.
mkdir -p archive/bilibili_legacy/coremkdir -p archive/bilibili_legacy/scriptsmkdir -p archive/bilibili_legacy/docs
Core:
core/bili_collector.pycore/extract_signals_llm.pycore/llm_processor.pycore/ocr_validation.pycore/ai_strategy.py(seems legacy)
Scripts (Root):
extract_video_keyframes.pyfetch_video_covers.pyfetch_new_blogger.pymanage_bloggers.pyprocess_ocr_gemini.pyresearch_ocr_demo.pyrun_ocr_backtest.pyclean_and_rank_bloggers.pydiscover_active_trading_ups.pydiscover_ups.py
Scripts (Bili):
scripts/bili/(entire folder)
- Delete
github_keyandgithub_key.pub(Security Risk! Should not be in repo if they are real keys, or move to private backup if just generated for this task). I will move them to a non-git folder or delete them if they are auto-generated. - Delete
import asyncio.py(looks like a typo file). - Delete
.~lock.*files.
git rmmoved files.git addnew locations.git commit -m "refactor: archive legacy bilibili components and organize project structure"
- Cleaned up project structure.
archive/folder containing legacy code.- Git commit reflecting the reorganization.