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 대신 requests 이용 #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

mirusu400
Copy link

Selenium은 웹드라이버 프로그램을 이용하기때문에 기본적으로 무겁지만, requests 모듈을 이용하면 단순히 HTTP(S) 요청으로 필요한 것만 요청하기 때문에 훨씬 가벼워 집니다.

확인해보니 광운대학교 식단 홈페이지는 동적 웹사이트가 아닌 정적 웹사이트이기 때문에, 궃이 Selenium 으로 가상의 웹을 띄울 필요없이 requests로 필요한 HTML 파일만 가져다 쓰면 됩니다.

그 외에도 README에 빠진 의존성 schedule이 있어서 추가했습니다.

@kwYoohae
Copy link
Owner

누추한 곳에 방문 감사드립니다. 😄

이전에 사용했을 때 request 사용을 하였을 때 Header 인증 문제 때문에 Selenium으로 방향을 틀었던 것으로 기억하고 있습니다.

그때는 크롤링에 대해서 잘 모르고 HTTP Method가 정확이 뭔지도 몰랐던 시점인데 지금 보니 정적인 페이지에 굳이 Selenium 을 쓰는 것이 아니라고 생각합니다.

Pull Request를 통한 관심 감사드립니다. 확인 후 머지하도록 하겠습니다 😀

좋은하루 되시길 바랍니다!!

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

Successfully merging this pull request may close these issues.

2 participants