Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

instagram-crawler

> 编程语言
Open source

Get Instagram posts/profile/hashtag data without using Instagram API

1.3K stars0 likes0 views
WebsiteGitHub

About

Get Instagram posts/profile/hashtag data without using Instagram API

Instagram Crawler

Below is what you can do with this program:

  • Get Instagram posts/profile/hashtag data without using Instagram API. crawler.py
  • Like posts automatically. liker.py

This crawler could fail due to updates on instagram’s website. If you encounter any problems, please contact me.

Install

  1. Make sure you have Chrome browser installed.
  2. Download chromedriver and put it into bin folder: ./inscrawler/bin/chromedriver
  3. Install Selenium: pip3 install -r requirements.txt
  4. cp inscrawler/secret.py.dist inscrawler/secret.py

User Auth

  1. Open inscrawler/secret.py file.
  2. Change the username and password variables' value to the ones corresponding to your Instagram account.
username = 'my_ig_username'
password = '***********'

Crawler

Usage

…

Example

bash
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 # deprecated
  1. Choose mode posts, 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]
  2. Return default 100 hashtag posts(mode: hashtag) and all user's posts(mode: posts) if not specifying the number of post -n, --number.
  3. Print the result to the console if not specifying the output path of post -o, --output.
  4. It takes much longer to get data if the post number is over about 1000 since Instagram has set up the rate limit for data request.
  5. Don't use this repo crawler Instagram if the user has more than 10000 posts.

The data format of posts:

The data format of posts_full:

Liker

Set up your username/password in secret.py or set them as environment variables.

Usage

positional arguments:
  tag

optional arguments:
  -n NUMBER, --number NUMBER (default 1000)
                        number of posts to like

Example

bash
python liker.py foodie

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonautoautolikerinstagraminstagram-bot

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言