코랩엔 우분투 도커가 들어있었어...
공짜로 리눅스를 주네. -_- 우분투 18.04
코랩 파일 다루기 (구글 드라이브에서)
# /content/drive/My Drive/Colab Notebooks/
f = open("/content/drive/My Drive/Colab Notebooks/voca_db.txt", 'w', encoding="utf8")
f.write("ㅇㅇㅇ')
f.close()
코랩에서 셀레니움 크롬드라이버
#!pip uninstall selenium
#!pip install selenium==3.141
#!apt-get update
#!apt autoremove
!pip install selenium
!apt install chromium-chromedriver
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
driver = webdriver.Chrome('chromedriver', options=chrome_options)
url = 'https://ko.wiktionary.org/wiki/%EB%B6%80%EB%A1%9D:%EC%9E%90%EC%A3%BC_%EC%93%B0%EC%9D%B4%EB%8A%94_%ED%95%9C%EA%B5%AD%EC%96%B4_%EB%82%B1%EB%A7%90_5800'
driver.get(url)
'python(0821-0908) > 메모' 카테고리의 다른 글
깃허브 블로그 (0) | 2023.04.08 |
---|---|
초보코딩 pillow : 이미지 다루기 (흑백처리, 모자이크, 도트) (0) | 2022.09.07 |
학습 리뷰 (0) | 2022.09.07 |
리스트 insert,append // pop, del, remove // a.count(1), len(a) (0) | 2022.09.05 |
urlopen 과 requests.get : 벅스 순위 (0) | 2022.08.27 |
댓글