From 3dcdc6f8473cadf5b724bba59db157887936052d Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sat, 23 Aug 2025 11:05:52 +0800 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B2=D0=BD=D1=83=D1=82=D1=80=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D0=B8=D1=85=20=D1=81=D1=81=D1=8B=D0=BB=D0=BE=D0=BA=20?= =?UTF-8?q?=D0=B2=20html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rag/1_download_html.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rag/1_download_html.sh b/rag/1_download_html.sh index 9cc5686..9147d0e 100755 --- a/rag/1_download_html.sh +++ b/rag/1_download_html.sh @@ -49,7 +49,12 @@ if [ -z "$content" ]; then fi path="$output_path/${title//\//_}.html" -echo "Страница: $title

$content" > "$path" +content=$(echo "$content" | sed "s#href=\"/#href=\"$CONF_URL/#g") +content=$(echo "$content" | sed "s#src=\"/#src=\"$CONF_URL/#g") +# content=${content//href=\"\//href=\"$CONF_URL} +# content=${content//src=\"\//src=\"$CONF_URL} + +echo "Страница: $CONF_URL/pages/viewpage.action?pageId=$PAGE_ID

$title

$content" > "$path" echo "Сохранено: $output_path/$title.html" child_ids=$(echo "$response" | jq -r '.children.page.results[]?.id' 2>/dev/null)