Get Instagram posts/profile/hashtag data without using Instagram API
Get Instagram posts/profile/hashtag data without using Instagram API
Below is what you can do with this program:
crawler.pyliker.pyThis crawler could fail due to updates on instagram’s website. If you encounter any problems, please contact me.
./inscrawler/bin/chromedriverpip3 install -r requirements.txtcp inscrawler/secret.py.dist inscrawler/secret.pyinscrawler/secret.py file.username and password variables' value to the ones corresponding to your Instagram account.username = 'my_ig_username'
password = '***********'…python crawler.py posts_full -u cal_foodie -n 100 -o ./output
python crawler.py posts_full -u cal_foodie -n 10 --fetch_likers --fetch_likes_plays
python crawler.py posts_full -u cal_foodie -n 10 --fetch_comments
python crawler.py profile -u cal_foodie -o ./output
python crawler.py hashtag -t taiwan -o ./output
python crawler.py hashtag -t taiwan -o ./output --fetch_details
python crawler.py posts -u cal_foodie -n 100 -o ./output # deprecatedposts, you will get url, caption, first photo for each post; choose mode posts_full, you will get url, caption, all photos, time, comments, number of likes and views for each posts. Mode posts_full will take way longer than mode posts. [posts is deprecated. For the recent posts, there is no quick way to get the post caption]-n, --number.-o, --output.The data format of posts:
The data format of posts_full:
Set up your username/password in secret.py or set them as environment variables.
positional arguments:
tag
optional arguments:
-n NUMBER, --number NUMBER (default 1000)
number of posts to likepython liker.py foodieNo open issues yet, or sync has not completed.