
非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
これはオープンソースプロジェクトです。ぜひ貢献してください: