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.52k stars 2.09k forks source link

How to log in??? #83

Closed wpw5152 closed 3 years ago

wpw5152 commented 3 years ago

┌──(me㉿kali)-[~] └─$ mkdir config

┌──(me㉿kali)-[~] └─$ cd config

┌──(me㉿kali)-[~/config] └─$ cat > username.conf myusername ^C

┌──(me㉿kali)-[~/config] └─$ cat > pw.conf
mypassword ^C

And then what?? How can I successfully log in after using python3 main.py targetuser ?

wpw5152 commented 3 years ago

Attempt to login... Unable to find file: config/settings.json ClientCookieExpiredError/ClientLoginRequiredError: login_required Traceback (most recent call last): File "/home/me/Osintgram/src/Osintgram.py", line 1001, in login self.api = AppClient(auto_patch=True, authenticate=True, username=u, password=p, File "/home/me/.local/lib/python3.9/site-packages/instagram_private_api/client.py", line 207, in init raise ClientLoginRequiredError('login_required', code=400) instagram_private_api.errors.ClientLoginRequiredError: login_required

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/me/Osintgram/main.py", line 107, in api = Osintgram(args.id, args.file, args.json) File "/home/me/Osintgram/src/Osintgram.py", line 35, in init self.login(u, p) File "/home/me/Osintgram/src/Osintgram.py", line 1020, in login self.api = AppClient(auto_patch=True, authenticate=True, username=u, password=p, File "/home/me/.local/lib/python3.9/site-packages/instagram_private_api/client.py", line 207, in init raise ClientLoginRequiredError('login_required', code=400) instagram_private_api.errors.ClientLoginRequiredError: login_required

Datalux commented 3 years ago

You need to create a setting file. Step 7 of installation:

Create in config folder the file: settings.json and write the following string: "{}" without quotation marks