From 88ab5e0d4f9a62018a428a833f3fa9cb6addba15 Mon Sep 17 00:00:00 2001 From: haoyuren <13851610112@163.com> Date: Sun, 29 Jun 2025 16:43:03 -0700 Subject: fix fetch --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 8dc5c80..775d22c 100644 --- a/README.md +++ b/README.md @@ -68,11 +68,29 @@ FETCH_MODE=historical python scripts/fetch_papers.py ### Testing +Test the daily fetching functionality: +```bash +python scripts/test_daily_fetch.py +``` + Test the historical fetching functionality: ```bash python scripts/test_historical_fetch.py ``` +### Debugging + +If the system completes too quickly or you suspect no papers are being fetched, use the debug script: +```bash +python scripts/debug_fetch.py +``` + +This will show detailed information about: +- arXiv API connectivity +- OpenAI API connectivity +- Number of papers fetched at each step +- Sample papers and filtering results + ## 🤖 GitHub Actions The project includes automated GitHub Actions workflows: @@ -118,8 +136,9 @@ Papers are considered relevant if they discuss: PaperFetcher/ ├── scripts/ │ ├── fetch_papers.py # Main fetching script +│ ├── test_daily_fetch.py # Daily fetching test │ ├── test_historical_fetch.py # Historical fetching test -│ └── [other test scripts] # Legacy test scripts +│ └── debug_fetch.py # Debug and troubleshooting script ├── .github/ │ └── workflows/ │ └── daily_papers.yml # GitHub Actions workflow -- cgit v1.2.3