python/python_selenium
python + selenium, bs4 환경 세팅하기
몽자비루
2023. 11. 22. 23:44
1. python 다운로드
https://www.python.org/downloads/
2.python 을 path 에 추가하기 선택 후 install Now
3. visual studio code 다운로드 (다음버튼 계속누르면 됨)
Visual Studio Code - Code Editing. Redefined
Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.
code.visualstudio.com
4. vs code에서 확장 기능 선택 > python 검색 > 최상단 기능 install
5. 컴퓨터 다시 시작 후 터미널 열기
6. 터미널에 pip install beautifulsoup4 입력 후 enter
7. 터미널에 pip install selenium 입력 후 enter
8. chrome webdriver버전 자동관리 패키지 설치
pip install chromedriver-autoinstaller
browser = webdriver.Chrome() 만 입력하면 자동으로 크롬드라이버 실행됨