Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,12 @@ def extract_data_to_excel_and_html(page, board_select, custom_url=""):
|
|
147 |
session = setup_session()
|
148 |
# ์ง์ ์
๋ ฅ ์ ํ ์ custom_url ์ฌ์ฉ
|
149 |
if board_select == "์ง์ ์
๋ ฅ" and custom_url.strip():
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
151 |
filename = f'custom_{datetime.now(pytz.timezone("Asia/Seoul")).strftime("%Y%m%d_%H%M%S")}.xlsx'
|
152 |
else:
|
153 |
base_url = get_base_url(board_select)
|
|
|
147 |
session = setup_session()
|
148 |
# ์ง์ ์
๋ ฅ ์ ํ ์ custom_url ์ฌ์ฉ
|
149 |
if board_select == "์ง์ ์
๋ ฅ" and custom_url.strip():
|
150 |
+
# ์
๋ ฅ๋ URL์ ์ ๋ฆฌํฉ๋๋ค.
|
151 |
+
url_input = custom_url.strip()
|
152 |
+
# ๋ง์ฝ ์์ URL์ด ์
๋ ฅ๋์๋ค๋ฉด ํ์ฌ ์ ์ฉ URL๋ก ๋ณ๊ฒฝ
|
153 |
+
if url_input.startswith("https://cafe.naver.com/f-e/cafes/25729954/menus/186"):
|
154 |
+
url_input = "https://cafe.naver.com/ArticleList.nhn?search.clubid=25729954&search.menuid=751&search.boardtype=L&userDisplay=50&search.specialmenutype=&search.totalCount=501&search.cafeId=25729954"
|
155 |
+
base_url = url_input
|
156 |
filename = f'custom_{datetime.now(pytz.timezone("Asia/Seoul")).strftime("%Y%m%d_%H%M%S")}.xlsx'
|
157 |
else:
|
158 |
base_url = get_base_url(board_select)
|