We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84addad commit 0f13c68Copy full SHA for 0f13c68
naver-research.py
@@ -135,10 +135,10 @@ def NAVER_Report_parseURL(LIST_ARTICLE_URL):
135
136
# "원문 보기" 버튼이 포함된 <a> 태그 찾기
137
a_tag = soup.find("a", class_="ResearchHeaderTools_button_text__5E_Qj")
138
-
+ print("원문 보기 버튼:", a_tag)
139
# href 값 가져오기
140
if a_tag and "href" in a_tag.attrs:
141
- strUrl = a_tag["href"]
+ strUrl = f"https://m.stock.naver.com{a_tag['href']}"
142
print("찾은 링크:", strUrl)
143
else:
144
print("해당 태그를 찾을 수 없습니다.")
0 commit comments