From e1acc136dfa5a5664d6bca331813a56dc7e493ad Mon Sep 17 00:00:00 2001 From: Anthony Axenov Date: Wed, 20 Aug 2025 20:05:19 +0800 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B8=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D1=83=D1=8E?= =?UTF-8?q?=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=83=20=D0=B2=20?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D0=B8=D1=80=D1=83=D0=B5=D0=BC=D1=8B?= =?UTF-8?q?=D0=B9=20html-=D1=84=D0=B0=D0=B9=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rag/1_download_page.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rag/1_download_page.sh b/rag/1_download_page.sh index 84a5cc3..6efe1d9 100755 --- a/rag/1_download_page.sh +++ b/rag/1_download_page.sh @@ -39,12 +39,12 @@ output_path="./input_html" title=$(echo "$response" | jq -r .title) content=$(echo "$response" | jq -r .body.storage.value) -echo "$content" > "$output_path/$title.html" + +echo "Страница: $title

$content" > "$output_path/$title.html" echo "Сохранено: $output_path/$title.html" child_ids=$(echo "$response" | jq -r '.children.page.results[]?.id' 2>/dev/null) for child_id in $child_ids; do echo "Переход к дочерней странице: $child_id" - sleep 1 $0 "$child_id" done