상세 컨텐츠

본문 제목

파이썬 크롤링을 통한 시집 만들기(2편)

개발/python

by IT License 2019. 7. 18. 16:37

본문

이제 이미지를 크롤링 해보자.

검색해보니 이미 만들어 놓은 모듈이 있다.

https://data-make.tistory.com/172

https://google-images-download.readthedocs.io/en/latest/examples.html#

 

Examples — Google Images Download documentation

Examples Link to GitHub repo Link to Documentation Homepage Link to Input arguments or parameters Config File Format You can either pass the arguments directly from the command as in the examples below or you can pass it through a config file. Below is a s

google-images-download.readthedocs.io

먼저 인스톨 부터 하자.

pip install google_images_download

 

그리고 소스는 너무 간단하다.

 

실행하면 keyword="풍경사진"으로 설정하여 구글 이미지 검색을 통해 100장을 다운로드 하는 것이다.

결과는 77개 까지만 다운로드 받았는데 어쨌건 성공...

 

 

벌써 이미지 크롤링은 끝.

 

 

'개발 > python' 카테고리의 다른 글

파이썬 크롤링을 통한 시집 만들기(3편)  (0) 2019.07.19
파이썬 크롤링을 통한 시집 만들기(1편)  (0) 2019.07.18
파이썬- 컬렉션  (0) 2019.06.09
파이썬 - 문자열  (0) 2019.06.09
파이썬 연산자  (0) 2019.06.06

관련글 더보기

댓글 영역