1. 일단 윈도우용 파이썬3를 설치 - 커스터 마이징 인스톨로 해야한다 .
2. 환경변수를 잡아준다 .
ㄴ http://redkreuz.tistory.com/181
C:\Program Files (x86)\Python36-32\Scripts
그러고나서 cmd 에서 해당 폴더로 들어가서
python executeCrawling.py 를 실행
역시나 모듈이 없다고 나온다 .
일단 모듈 부터 설치해준다
모듈 리스트
ㄴ pip install matplotlib
ㄴpip install selenium
ㄴpip install scrapy --- 그냥 주석처리 함
ㄴ pip install bs4
ㄴ pip install openpyxl
이렇게 까지 깔아주니깐
크롬드라이버 깔라고 나옴
ㄴself.driver = webdriver.Chrome("C:/Users/PC/Downloads/chromedriver"); 파일명까지 적어줘야한다 경로만 잡아주지말고
ㄴ크롬 드라이버 경로 해서 유니코드 에러가 떴었는데 슬래쉬 문제인거 해결
ㄴ 에러메시지 SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position n 2-3: truncated \UXXXXXXXX escape
os가 달라서 엑셀 생성 문제가 있는듯
OSError: [Errno 22] Invalid argument: 이렇게 떳는데
C:\Program Files (x86)\Python36-32\Scripts;
먼내용인지는 모르지만 일단 저장
Command ""c:\program files (x86)\python36-32\python.exe" -u -c "import setuptool
s, tokenize;__file__='C:\\Users\\PC\\AppData\\Local\\Temp\\pip-build-z9pob7r8\\T
wisted\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().repl
ace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --rec
ord C:\Users\PC\AppData\Local\Temp\pip-ka0je_97-record\install-record.txt --sing
le-version-externally-managed --compile" failed with error code 1 in C:\Users\PC
\AppData\Local\Temp\pip-build-z9pob7r8\Twisted\
윈도우서 실행
python executeCrawlingFb_test.py
python executeCrawling.py
뽀식이 자리에 난 에러
ㄴhttp://rocksea.tistory.com/332
File "c:\users\김보연\appdata\local\programs\python\python36-32\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str
return s.decode('utf_8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 33: invalid start byte
C:\Users\김보연>
C:\Users\김보연>
C:\Users\김보연>UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 33: invalid start byte