Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def scrape_naver_blog(url):
|
|
26 |
print("[DEBUG] Step 4: Crawling Title")
|
27 |
try:
|
28 |
title_element = soup.select_one(
|
29 |
-
"body > div:nth-of-type(7) > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(
|
30 |
)
|
31 |
title = title_element.get_text(strip=True) if title_element else "์ ๋ชฉ์ ์ฐพ์ ์ ์์ต๋๋ค."
|
32 |
print(f"[DEBUG] Title: {title}")
|
|
|
26 |
print("[DEBUG] Step 4: Crawling Title")
|
27 |
try:
|
28 |
title_element = soup.select_one(
|
29 |
+
"body > div:nth-of-type(7) > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(2) > div > div > div:nth-of-type(8) > div:nth-of-type(1) > div > table:nth-of-type(2) > tbody > tr > td:nth-of-type(2) > div:nth-of-type(1) > div > div:nth-of-type(1) > div > div > div:nth-of-type(2) > div"
|
30 |
)
|
31 |
title = title_element.get_text(strip=True) if title_element else "์ ๋ชฉ์ ์ฐพ์ ์ ์์ต๋๋ค."
|
32 |
print(f"[DEBUG] Title: {title}")
|