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