马一丁

Update README-EN.md

@@ -306,6 +306,7 @@ BettaFish/ @@ -306,6 +306,7 @@ BettaFish/
306 ├── Dockerfile # Docker image build file 306 ├── Dockerfile # Docker image build file
307 ├── requirements.txt # Python dependency list 307 ├── requirements.txt # Python dependency list
308 ├── regenerate_latest_pdf.py # PDF regeneration utility script 308 ├── regenerate_latest_pdf.py # PDF regeneration utility script
  309 +├── report_engine_only.py # Report Engine CLI version (no Web interface required)
309 ├── README.md # Chinese documentation 310 ├── README.md # Chinese documentation
310 ├── README-EN.md # English documentation 311 ├── README-EN.md # English documentation
311 ├── CONTRIBUTING.md # Chinese contribution guide 312 ├── CONTRIBUTING.md # Chinese contribution guide
@@ -565,6 +566,44 @@ python main.py --broad-topic --date 2024-01-20 @@ -565,6 +566,44 @@ python main.py --broad-topic --date 2024-01-20
565 python main.py --deep-sentiment --platforms xhs dy wb 566 python main.py --deep-sentiment --platforms xhs dy wb
566 ``` 567 ```
567 568
  569 +#### 6.4 Command-line Report Generation Tool
  570 +
  571 +If you don't need the Web interface, you can use the command-line tool to generate reports directly. This tool automatically retrieves the latest report files from the three analysis engines, skips file addition verification, and directly generates comprehensive reports.
  572 +
  573 +```bash
  574 +# Basic usage (automatically extract topic from filename)
  575 +python report_engine_only.py
  576 +
  577 +# Specify report topic
  578 +python report_engine_only.py --query "Civil Engineering Industry Analysis"
  579 +
  580 +# Skip PDF generation (even if system supports it)
  581 +python report_engine_only.py --skip-pdf
  582 +
  583 +# Show verbose logging
  584 +python report_engine_only.py --verbose
  585 +
  586 +# Show help information
  587 +python report_engine_only.py --help
  588 +```
  589 +
  590 +**Features:**
  591 +
  592 +1. **Automatic Dependency Check**: The program automatically checks system dependencies required for PDF generation and provides installation instructions if missing
  593 +2. **Get Latest Files**: Automatically retrieves the latest analysis reports from three engine directories (`insight_engine_streamlit_reports`, `media_engine_streamlit_reports`, `query_engine_streamlit_reports`)
  594 +3. **File Confirmation**: Displays all selected file names, paths, and modification times, waiting for user confirmation (default input `y` to continue, input `n` to exit)
  595 +4. **Direct Report Generation**: Skips file addition verification and directly calls Report Engine to generate comprehensive reports
  596 +5. **Automatic File Saving**:
  597 + - HTML reports saved to `final_reports/` directory
  598 + - PDF reports (if dependencies available) saved to `final_reports/pdf/` directory
  599 + - File naming format: `final_report_{topic}_{timestamp}.html/pdf`
  600 +
  601 +**Notes:**
  602 +
  603 +- Ensure at least one of the three engine directories contains `.md` report files
  604 +- The command-line tool is independent of the Web interface and does not interfere with each other
  605 +- PDF generation requires system dependencies, see "Install PDF Export System Dependencies" section above
  606 +
568 ## ⚙️ Advanced Configuration (Deprecated: Configuration has been unified to the `.env` file in the project root directory, and other sub-agents automatically inherit the root directory configuration) 607 ## ⚙️ Advanced Configuration (Deprecated: Configuration has been unified to the `.env` file in the project root directory, and other sub-agents automatically inherit the root directory configuration)
569 608
570 ### Modify Key Parameters 609 ### Modify Key Parameters