Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def scrape_naver_blog(url):
|
|
35 |
content = content_element.get_text(strip=True)
|
36 |
|
37 |
# 결과 반환
|
38 |
-
return f"제목: {title}
|
39 |
|
40 |
except Exception as e:
|
41 |
# 디버깅 로그: 예외 발생 시
|
@@ -52,7 +52,6 @@ iface = gr.Interface(
|
|
52 |
outputs=gr.Textbox(label="스크래핑 결과"),
|
53 |
title="네이버 블로그 스크래퍼",
|
54 |
description="네이버 블로그 URL을 입력하면 제목과 내용을 스크래핑하여 출력합니다.",
|
55 |
-
theme="compact",
|
56 |
)
|
57 |
|
58 |
if __name__ == "__main__":
|
|
|
35 |
content = content_element.get_text(strip=True)
|
36 |
|
37 |
# 결과 반환
|
38 |
+
return f"제목: {title}\n내용: {content}"
|
39 |
|
40 |
except Exception as e:
|
41 |
# 디버깅 로그: 예외 발생 시
|
|
|
52 |
outputs=gr.Textbox(label="스크래핑 결과"),
|
53 |
title="네이버 블로그 스크래퍼",
|
54 |
description="네이버 블로그 URL을 입력하면 제목과 내용을 스크래핑하여 출력합니다.",
|
|
|
55 |
)
|
56 |
|
57 |
if __name__ == "__main__":
|