pierreleocadie / ScrapeGram

OSINT tool to scraping data from someone's Instagram account.
MIT License
7 stars 5 forks source link
instagram instagram-scraper osint osint-python osint-tool python scraper scraping scraping-instagram scraping-python

logo

ScrapeGram

Scraping data from Instagram

This project allows you to collect data from someone's Instagram account. Here a bunch of data that you can collect with this tool :

I've more ideas for features, I'll update this README file to make it clear at the right time.

Before install

**DISCLAIMER : ScrapeGram IS FOR EDUCATIONAL PURPOSE ONLY. By using ScrapeGram, you are violating the Instagram community rules, so do not use your personal Instagram account with ScrapeGram or you will be banned. Use ScrapeGram at your own risk.***

How to install ScrapeGram ?

You must be using Python version 3.10.0 or later.

Clone the repo :

git clone git@github.com:pierreleocadie/ScrapeGram.git

Then install requirements :

pip install -r requirements.txt

Setup ScrapeGram

In the src/ folder open the settings.json file. Provide your username and password to allow ScrapeGram to log into your Instagram account. Then provide the username of the target you want to collect data on.

"username_account": "your_username",
"password_account": "your_password",
"username_target_account" : "username_of_the_target"

You can also change the parameters of the queries. You can change: - the minimum and maximum delay you want between each request - the number of edges you want to get (edge = group of followers or following) - the number of followers or following you want to get per edge.

"queries_parameters": {
 "min_delay_between_request": 10,
 "max_delay_between_request": 20,
 "max_number_of_edges_to_get": 1,
 "number_of_followers_following_to_get_per_edge": 10
}

Run ScrapeGram in the main.py file or with these commands :

cd ScrapeGram
python src/main.py

or

cd ScrapeGram
python3 src/main.py

or

cd ScrapeGram
python src/main.py -u [your_username] -p [your_password] -t [username_of_the_target]

or

cd ScrapeGram
python3 src/main.py -u [your_username] -p [your_password] -t [username_of_the_target]