
API를 사용하지 않음. 사용자명과 해시태그로 게시물(사진, 좋아요, 댓글, 날짜 ...) 크롤링
비 API. 사용자 이름, 해시태그별로 게시물(사진, 좋아요, 댓글, 날짜 ...) 크롤링
./driver/chromedriverpip install -r requirements.txt결과: ./data 폴더 아래
사용자 이름 'instagram'에서 처음 10개의 사진과 정보 다운로드
$ python3 crawl.py -q 'instagram' -n 10
해시태그 #hello, #hi에서 처음 7개의 사진과 정보(모든 댓글) 다운로드
$ python3 crawl.py -q '#hello, #hi' --a -n 7
likes:
5,326
comments:
923
caption:
Art of @kendricklamar by @illestration Bold, bright and colorful.
commentMessages:
tttt: Amazing 😉
this_is_t.rs: my name says it all
dateTime:
2018-05-30T19:42:03.000Z
Usage:
crawl.py [-q QUERY] [-n NUMBER] [--a] [-h HELP]
Options:
-q QUERY username, add '#' to search for hashtags, e.g. 'username' or '#hashtag'
For multiple query seperate with comma, e.g. 'username1, username2, #hashtag'
-n NUM number of returned posts [default: 10000]
--a collect all comments
-h HELP show this help message and exit
이것은 오픈 소스 프로젝트이므로 자유롭게 기여해 주세요.