Datalux / Osintgram

Osintgram is a OSINT tool on Instagram. It offers an interactive shell to perform analysis on Instagram account of any users by its nickname
GNU General Public License v3.0
9.48k stars 2.07k forks source link

KeyError: 'business_email' #73

Closed Antxine closed 3 years ago

Antxine commented 3 years ago

Hello,

I updated the tool and ran the command to inspect someone's account (python main.py username). Then I write "info" and get this error :

Traceback (most recent call last):
File "main.py", line 134, in api.get_user_info() File "/home/kali/Osintgram/src/Osintgram.py", line 470, in get_user_info if data['business_email']: KeyError: 'business_email'

Do you have a solution ?

Antxine commented 3 years ago

By the way, I have two errors during the installation of the requirements, maybe the problem comes from there image image

Datalux commented 3 years ago

The problem is readline installation. Make sure that libncurses is installed or install it via sudo apt-get install libncurses5-dev and than try to install readline.

Polarolouis commented 3 years ago

Hi, i'm having the same KeyError when I type fwersemail :

Run a command: fwersemail Searching for emails of target followers... this can take a few minutes Traceback (most recent call last): File "/home/lordof20th/OSINT/Tools/Insta/Osintgram/main.py", line 128, in api.get_fwersemail() File "/home/lordof20th/OSINT/Tools/Insta/Osintgram/src/Osintgram.py", line 1088, in get_fwersemail if data['business_email']: KeyError: 'business_email'

Any solution ?

Datalux commented 3 years ago

Update: I checked the Instagram response and seems that something is changed in the JSON structure. I'll work to fix this.

Datalux commented 3 years ago

@LordOf20th @Antxine should be fixed in #74. Can you test this please?

Polarolouis commented 3 years ago

I tested it, it seems to work, no more KeyError 👍

Datalux commented 3 years ago

Fixed in #74.