파이썬 웹 스크래핑
1. 필요한 프로그램 1) visual studio code에서 open in browser를 검색하여 설치 2) pip install requests 3) pip install beautifulsoup4 4) pip install lxml 5) pip install selenium 6) 구글에서 chromedriver.exe 검색하여 다운로드 2. 규칙 1) xpath / // * @ 2) 정규식 python regex (regular expression) import re . 하나의 문자 ex) ca.e : care, cafe, case ^ 문자열의 시작 ex) ^de : desk, destination $ 문자열의 끝 ex) se$ : case, base 3. 예제 import csv import ..
Programming
2021. 9. 18. 17:23