GithubHelp home page GithubHelp logo

echteralsfake / osintgram2 Goto Github PK

View Code? Open in Web Editor NEW
21.0 1.0 0.0 181 KB

A tool to get OSINT information from an Instagram Account

License: GNU General Public License v3.0

Python 96.70% Shell 3.30%
cli instagram instagrapi osintgram python osint

osintgram2's Introduction

Announcement

This project is dead.

The problem is that Instagram is very strict with their APIs nowadays, and we just don't have the abilities like back then. You can still use this project, and it should still work a bit, but I won't be really developing on this anymore. Maybe I am doing small updates to fix critical issues, but please don't report errors anymore. I won't fix them.

Thank you all.

Osintgram 2๐Ÿ”Ž๐Ÿ“ธ

A OSINT Tool for anonymous advanced information gathering
Based on the great Osintgram from Datalux

Table of contents

Instagram ToS

!!! PROHIBITED BY INSTAGRAM !!!

INSTAGRAM PROHIBITS USING THEIR PRIVATE API
INSTAGRAM PROHOBITS USING AUTOMATED TOOLS

Features

  • Everything from the original Osintgram by Datalux*
  • automatic download of all media from specific hashtag
  • search for hashtags with a query
  • download media from hashtags
  • No Login required
  • Stable API
  • Intuitive folder structure system
  • Automatic login through session ID

**except hashtags, tagged, commented, wcommented

Prevent Instagram Account bans

Instagram has a lot of limitations since the Osintgram by Datalux.

Try the following if you get errors, related to the API, login or loading objects:

  • Change IP (NO VPN, restart router instead)
  • Change device fingerprint
  • Change User Agent
  • Login with Browser, and use the Session ID from developer settings
  • Use different Account
  • Add 2FA to your account
  • Change Delay of API actions

While developing, I am using over 15 different Accounts and over 10 different IP addresses.
It's hard, but possible!

Installation

Current version: 1.2

Download from Releases

Building from Source

Supported distros:

  • Termux (Android) ! NO root access required
  • Kali Linux / Nethunter
  • Ubuntu
  • Parrot OS
  • Arch Linux
  • OpenSUSE
  • Fedora

The build script will automatically compile the application with Pyinstaller.
This gives you the newest function, even before they are released! (Can lead to errors)

Wget:

wget -O - "https://raw.githubusercontent.com/EchterAlsFake/Osintgram2/master/install.sh" | bash

Curl:

curl -s "https://raw.githubusercontent.com/EchterAlsFake/Osintgram2/master/install.sh" | bash

ChatGPT automatically generated the build script.
If you find errors, feel free to report them :)

Credits

GUI : Qt

License

Licensed under the GPLv3 License.
Copyright (C) 2023 EchterAlsFake | Johannes Habel

osintgram2's People

Contributors

echteralsfake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

osintgram2's Issues

Error

Hello im trying to use this tool and when I try to Get email of users followed by target or Get phone number of users followed by target this is happening.

this is the error

: ------------------=>:9
Traceback (most recent call last):
File "/home/kali/Desktop/Osintgram2-1.1.1/Osintgram.py", line 676, in
Osintgram()
File "/home/kali/Desktop/Osintgram2-1.1.1/Osintgram.py", line 106, in init
self.menu()
File "/home/kali/Desktop/Osintgram2-1.1.1/Osintgram.py", line 202, in menu
method()
File "/home/kali/Desktop/Osintgram2-1.1.1/Osintgram.py", line 139, in
"9": lambda: self.get_number(mode="9"),
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/Desktop/Osintgram2-1.1.1/Osintgram.py", line 413, in get_number
usernames = [follower.username for follower in followers]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

error in option 10 : get target info

T) Set Target

    • addrs Get all registered addressed by target photos
    • captions Get user's photos captions
    • comments Get total comments of target's posts
    • followers Get target followers
    • followings Get users followed by target
    • fwersemail Get email of target followers
    • fwingsemail Get email of users followed by target
    • fwersnumber Get phone number of target followers
    • fwingsnumber Get phone number of users followed by target
    • info Get target info
    • likes Get total likes of target's posts
    • mediatype Get user's posts type (photo or video)
    • photos Download user's photos in output folder
    • propic Download user's profile picture
    • stories Download user's stories
    • Exit

-------------------=>:10
Traceback (most recent call last):
File "C:\Users\bobme\Desktop\Tools\Osintgram2\Osintgram.py", line 509, in
Osintgram_like_datalux()
File "C:\Users\bobme\Desktop\Tools\Osintgram2\Osintgram.py", line 84, in init
self.menu()
File "C:\Users\bobme\Desktop\Tools\Osintgram2\Osintgram.py", line 136, in menu
self.get_info()
File "C:\Users\bobme\Desktop\Tools\Osintgram2\Osintgram.py", line 418, in get_info
print(f"""
File "C:\Users\bobme\AppData\Local\Programs\Python\Python311\Lib\encodings\cp1256.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f31d' in position 313: character maps to

error after executing codes

this error showed after i execute commands on debian vps:

T) Set Target
0) - Login Needed for private account's you are following to

    • addrs Get all registered addressed by target photos
    • captions Get user's photos captions
    • comments Get total comments of target's posts
    • followers Get target followers
    • followings Get users followed by target
    • fwersemail Get email of target followers
    • fwingsemail Get email of users followed by target
    • fwersnumber Get phone number of target followers
    • fwingsnumber Get phone number of users followed by target
    • info Get target info
    • likes Get total likes of target's posts
    • mediatype Get user's posts type (photo or video)
    • photos Download user's photos in output folder
    • propic Download user's profile picture
    • stories Download user's stories
    • album Download user's album
    • igtv Get user's IGTV
    • hashtag_media Get all media files from a specific hashtag
    • hashtag_search Search for hashtags with a search query
    • Exit
      -------------------=>:6
      [+]Enter target --=>:jordan.bown
      urllib3.exceptions.ResponseError: too many 429 error responses

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "requests/adapters.py", line 486, in send
File "urllib3/connectionpool.py", line 941, in urlopen
File "urllib3/connectionpool.py", line 941, in urlopen
File "urllib3/connectionpool.py", line 941, in urlopen
File "urllib3/connectionpool.py", line 931, in urlopen
File "urllib3/util/retry.py", line 515, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/users/jordan.bown/usernameinfo/ (Caused by ResponseError('too many 429 error responses'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Osintgram.py", line 634, in
Osintgram()
File "Osintgram.py", line 106, in init
self.menu()
File "Osintgram.py", line 185, in menu
self.get_target()
File "Osintgram.py", line 210, in get_target
target_id = self.get_target_id()
^^^^^^^^^^^^^^^^^^^^
File "Osintgram.py", line 223, in get_target_id
return self.cl.user_id_from_username(self.username)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "instagrapi/mixins/user.py", line 50, in user_id_from_username
File "instagrapi/mixins/user.py", line 200, in user_info_by_username
File "instagrapi/mixins/user.py", line 163, in user_info_by_username_v1
File "instagrapi/mixins/private.py", line 542, in private_request
File "instagrapi/mixins/private.py", line 527, in private_request
File "instagrapi/mixins/private.py", line 346, in _send_private_request
File "requests/sessions.py", line 602, in get
File "requests/sessions.py", line 589, in request
File "requests/sessions.py", line 703, in send
File "requests/adapters.py", line 510, in send
requests.exceptions.RetryError: HTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/users/jordan.bown/usernameinfo/ (Caused by ResponseError('too many 429 error responses'))
[9976] Failed to execute script 'Osintgram' due to unhandled exception!

how to fix that?

FileNotFoundError: [Errno 2] No such file or directory: 'src/session.json'

Error after login:

Traceback (most recent call last):
File "C:\Users\bobme\Desktop\Tools\Osintgram2\Osintgram.py", line 509, in
Osintgram_like_datalux()
File "C:\Users\bobme\Desktop\Tools\Osintgram2\Osintgram.py", line 82, in init
self.login()
File "C:\Users\bobme\Desktop\Tools\Osintgram2\Osintgram.py", line 175, in login
with open("src/session.json", "w") as file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'src/session.json'

Issue with comments

Enter between 1 - 100 (default: 50) -->:
50
Fetching media: 100%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 366/366 [00:34<00:00, 10.52it/s]
Traceback (most recent call last):
File "Osintgram.py", line 862, in
execute()
File "Osintgram.py", line 825, in execute
Osintgram()
File "Osintgram.py", line 133, in init
self.menu()
File "Osintgram.py", line 272, in menu
getattr(self, method)()
File "Osintgram.py", line 430, in get_comments
with open(f"{self.target}{os.sep}comments{os.sep}comments.txt") as comments_file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'username/comments/comments.txt'
[179970] Failed to execute script 'Osintgram' due to unhandled exception!

some error

[+]Enter target --=>:memerpaiyan2023
urllib3.exceptions.ResponseError: too many 429 error responses

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "requests/adapters.py", line 486, in send
File "urllib3/connectionpool.py", line 945, in urlopen
File "urllib3/connectionpool.py", line 945, in urlopen
File "urllib3/connectionpool.py", line 945, in urlopen
File "urllib3/connectionpool.py", line 935, in urlopen
File "urllib3/util/retry.py", line 515, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/users/memerpaiyan2023/usernameinfo/ (Caused by ResponseError('too many 429 error responses'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Osintgram.py", line 870, in
execute()
File "Osintgram.py", line 833, in execute
Osintgram()
File "Osintgram.py", line 141, in init
self.menu()
File "Osintgram.py", line 240, in menu
self.get_target()
File "Osintgram.py", line 320, in get_target
target_id = self.get_target_id()
^^^^^^^^^^^^^^^^^^^^
File "Osintgram.py", line 340, in get_target_id
return self.cl.user_id_from_username(self.target)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "instagrapi/mixins/user.py", line 50, in user_id_from_username
File "instagrapi/mixins/user.py", line 200, in user_info_by_username
File "instagrapi/mixins/user.py", line 163, in user_info_by_username_v1
File "instagrapi/mixins/private.py", line 542, in private_request
File "instagrapi/mixins/private.py", line 527, in private_request
File "instagrapi/mixins/private.py", line 346, in _send_private_request
File "requests/sessions.py", line 602, in get
File "requests/sessions.py", line 589, in request
File "requests/sessions.py", line 703, in send
File "requests/adapters.py", line 510, in send
requests.exceptions.RetryError: HTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/users/memerpaiyan2023/usernameinfo/ (Caused by ResponseError('too many 429 error responses'))
[1238] Failed to execute script 'Osintgram' due to unhandled exception!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.