Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selenium 활용한 버튼 클릭 #15

Open
mukmookk opened this issue May 16, 2023 · 1 comment
Open

Selenium 활용한 버튼 클릭 #15

mukmookk opened this issue May 16, 2023 · 1 comment

Comments

@mukmookk
Copy link
Owner

https://finance.yahoo.com/quote/MSFT/history?p=MSFT

해당 사이트에서 history 데이터 추출 시 1년의 기간까지만 데이터가 보여짐. 이때 <div id="dropdown-menu" ...> 내부의 MAX을 selenium 활용하여 클릭할 경우 모든 historical data를 크롤링 가능.

@mukmookk
Copy link
Owner Author

mukmookk commented May 16, 2023

selector에 문제가 있는 것으로 보임

button_element = 'button.Py(5px).W(45px).Fz(s).C($tertiaryColor).Cur(p).Bd.Bdc($seperatorColor).Bgc($lv4BgColor).Bdc($linkColor):h.Bdrs(3px)[data-value="MAX"]'

우선 다른 쪽 개발 후에 Max 기능 향후 추가하는 것으로 결정

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant