Git Product home page Git Product logo

Comments (97)

Cybrarist avatar Cybrarist commented on July 4, 2024 15

so. it's not a perfect solution , but it works
i just replace these two line
self.description = json.loads(description.get_text())
self.profile_meta = json.loads(more_data[3].get_text()[21:].strip(';'))
with
self.description = json.loads(description.string)
self.profile_meta = json.loads(more_data[3].string[21:].strip(';'))

apparently , get_text() is returning nothing for some reason.

anyway , this is the whole file for main.py in case you need it instead of replacing manually
main.zip

have fun

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024 3

@Desze perfect , you can remove the two pprints in line 77 and 79 for cleaner ouput

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024 2

why not

there you go guys , you can download it from here https://github.com/YnwaFawzy/InstagramOSINT

in case you have any other issues I'll be happy to help here or there as i believe the developer stopped supporting this repository.

have fun

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024 1

@Desze
So i checked your profile on the web browser , and strangely the description field doesn't exist ( as the json schema that should represent your profile <script type="application/ld+json"> ).

a quick fix is i checked if the json schema exist by adding

            if( description is not None):
              self.description = json.loads(description.string)

and then i divided the output into two parts ,the basic one and the description

`
self.profile_data = {"Username": self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['username'],
"Followers": self.text[0], "Following": self.text[2], "Posts": self.text[4],
"Bio": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['biography']),
"profile_pic_url": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'profile_pic_url_hd']),
"is_business_account": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'is_business_account']),
"connected_to_fb": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'connected_fb_page']),
"externalurl": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['external_url']),
"joined_recently": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'is_joined_recently']),
"business_category_name": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'business_category_name']),
"is_private": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['is_private']),
"is_verified": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['is_verified'])}

`

and for the description if found
if (description is not None): { "Profile name": self.description['name'], "URL": self.description['mainEntityofPage']['@id'], }

it should be working fine now , you can get the new file
main.py.zip

from instagramosint.

C4l1b3r avatar C4l1b3r commented on July 4, 2024 1

@Desze
So i checked your profile on the web browser , and strangely the description field doesn't exist ( as the json schema that should represent your profile <script type="application/ld+json"> ).

a quick fix is i checked if the json schema exist by adding

            if( description is not None):
              self.description = json.loads(description.string)

and then i divided the output into two parts ,the basic one and the description

`
self.profile_data = {"Username": self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['username'],
"Followers": self.text[0], "Following": self.text[2], "Posts": self.text[4],
"Bio": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['biography']),
"profile_pic_url": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'profile_pic_url_hd']),
"is_business_account": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'is_business_account']),
"connected_to_fb": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'connected_fb_page']),
"externalurl": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['external_url']),
"joined_recently": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'is_joined_recently']),
"business_category_name": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'business_category_name']),
"is_private": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['is_private']),
"is_verified": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['is_verified'])}

`

and for the description if found
if (description is not None): { "Profile name": self.description['name'], "URL": self.description['mainEntityofPage']['@id'], }

it should be working fine now , you can get the new file
main.py.zip

This worked thank you

from instagramosint.

Jlb15 avatar Jlb15 commented on July 4, 2024 1

@Brewas hey man I actually have the same kind of problem, I put my username (the one that is in credential file) and it works but when I put a different user it stops working and it appears me as “user not found”

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024 1

@Gaurav60419430 can you check with this tool https://github.com/Datalux/Osintgram
i think this repo is not maintained any more.

from instagramosint.

Kithu29 avatar Kithu29 commented on July 4, 2024

Hi,
I'm also facing the same issue. Kindly please give a response. Thank you :)

from instagramosint.

Abhishek-Deshmukh avatar Abhishek-Deshmukh commented on July 4, 2024

same here, I'm suspecting this is because of the Instagram's website UI changes or something.
Any help would be appreciated, thank you.

from instagramosint.

Manan-hellsangel62626 avatar Manan-hellsangel62626 commented on July 4, 2024

I have tried on many systems same problem

from instagramosint.

DjChart avatar DjChart commented on July 4, 2024

Mismo Problemaaa

from instagramosint.

Geoveza avatar Geoveza commented on July 4, 2024

same problem

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@Geoveza @DjChart is my solution above not working?

from instagramosint.

gituu4567 avatar gituu4567 commented on July 4, 2024

everytime i put a username it shows Username xxccdd not found

from instagramosint.

mrsilas666 avatar mrsilas666 commented on July 4, 2024

try using this method
$ sudo apt install software-properties-common
and try agian ♥

from instagramosint.

akshaysmarty00786 avatar akshaysmarty00786 commented on July 4, 2024

Same problem

from instagramosint.

akshaysmarty00786 avatar akshaysmarty00786 commented on July 4, 2024

Same problem

from instagramosint.

spctr01 avatar spctr01 commented on July 4, 2024

@YnwaFawzy still not working

from instagramosint.

tina1998612 avatar tina1998612 commented on July 4, 2024

It works thanks @YnwaFawzy!!

from instagramosint.

mathiznogoud avatar mathiznogoud commented on July 4, 2024

@tina1998612
Mine still not working, can you provide your fixed code?

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@mathiznogoud did you try the file in my comment up?

from instagramosint.

Desze avatar Desze commented on July 4, 2024

I tried the zip and it doesn't work

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@Desze did you try it alone? or replaced the main.py inside with the one in the repository?

from instagramosint.

Desze avatar Desze commented on July 4, 2024

@YnwaFawzy I replaced the main.py in the folder
But it still doesn't work for me.

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@Desze you tried by using python3 and python2, right?

from instagramosint.

Desze avatar Desze commented on July 4, 2024

@YnwaFawzy Yes

InstagramOSINT$ python3 main.py --username desze

[*] Starting Scan on desze
list index out of range
Username desze not found

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@Desze can you zip the whole folder and send it, I'll check it after 9 hours approx. (at night).

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@Desze so I tried to search for your username and couldn't find it.

are you sure this is your username?

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@Desze try a different username, it should work fine.

it worked fine for me on 2 different machines with different operating systems

from instagramosint.

Desze avatar Desze commented on July 4, 2024

@YnwaFawzy It works for me now on that guy's Instagram Instagram.com/desze
But in mine Instagram.com/idesze doesn't work

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@Desze it works for m , can you do a simple pprint when the error happens
Screen Shot 2020-08-11 at 1 41 55 PM

from instagramosint.

Desze avatar Desze commented on July 4, 2024

Captura de pantalla de 2020-08-11 04-57-43

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@Desze
can you do a pprint before and after the profile_meta (line 78) to see if it was the reason

from instagramosint.

Desze avatar Desze commented on July 4, 2024

Captura de pantalla de 2020-08-11 05-25-15

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@Desze just add pprint("hello1") on line 76
and pprint("hello2") on line 78
and then run the program again

i just want to know where there error is getting thrown

from instagramosint.

Desze avatar Desze commented on July 4, 2024

~/InstagramOSINT$ python3 main.py --username idesze
File "main.py", line 76
pprint("hello1")
^
IndentationError: unindent does not match any outer indentation level

from instagramosint.

Desze avatar Desze commented on July 4, 2024

:~/InstagramOSINT$ sudo python3 main.py --username desze
File "main.py", line 77
self.profile_meta = json.loads(more_data[3].string[21:].strip(';'))
^
IndentationError: unindent does not match any outer indentation level

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

can you use this file
main.py 2.zip

from instagramosint.

Desze avatar Desze commented on July 4, 2024

working

from instagramosint.

Chewbee avatar Chewbee commented on July 4, 2024

You should commit this ;)

from instagramosint.

kaushalag29 avatar kaushalag29 commented on July 4, 2024

Please use my branch code "kaushalag29", I have raised the PR for this.
https://github.com/kaushalag29/InstagramOSINT

from instagramosint.

F-2-0 avatar F-2-0 commented on July 4, 2024

Please use my branch code "kaushalag29" I have raised the PR for this.
https://github.com/kaushalag29/InstagramOSINT

I used ur branch still the same prob

from instagramosint.

F-2-0 avatar F-2-0 commented on July 4, 2024

why not

there you go guys , you can download it from here https://github.com/YnwaFawzy/InstagramOSINT

in case you have any other issues I'll be happy to help here or there as i believe the developer stopped supporting this repository.

have fun

Guyz use this worked for me

from instagramosint.

kaushalag29 avatar kaushalag29 commented on July 4, 2024

Please use my branch code "kaushalag29" I have raised the PR for this.
https://github.com/kaushalag29/InstagramOSINT

I used ur branch still the same prob

Are you sure you downloaded from "kaushalag29" branch(checked out to kaushalag29) and not "master" branch.

from instagramosint.

kaushalag29 avatar kaushalag29 commented on July 4, 2024

Please use my branch code "kaushalag29" I have raised the PR for this.
https://github.com/kaushalag29/InstagramOSINT

I used ur branch still the same prob

Are you sure you downloaded from "kaushalag29" branch(checked out to kaushalag29) and not "master" branch.

Yes i am sure i used ur branch
but nvm it worked when i use https://github.com/YnwaFawzy/InstagramOSINT this one

Bro! I checked, it's working for me.
Please check the output of git branch or trying checking out git checkout kaushalag29 and then re-try.

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

why not

there you go guys , you can download it from here https://github.com/YnwaFawzy/InstagramOSINT

in case you have any other issues I'll be happy to help here or there as i believe the developer stopped supporting this repository.

have fun

I still get the below error after using your updated version.

None
list index out of range
Username google not found

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@user333222 can you provide me with the command you wrote and a screenshot, because it works fine on my device.
image

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

@user333222 can you provide me with the command you wrote and a screenshot, because it works fine on my device.
image

Im using the same command as you.

kali@kali:~/Desktop/Scirpt/InstagramOSINT-master$ python3 main.py --username google

[*] Starting Scan on google
None
list index out of range
Username google not found
kali@kali:~/Desktop/Scirpt/InstagramOSINT-master$

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

can you provide me with a screenshot please , also you're using the one here https://github.com/YnwaFawzy/InstagramOSINT right ? , can you try to open the page normally in a browser to see if they consider you as a bot . and are you sure that you don't have any firewall that blocks the connection.

try to edit the program to print out the html just to get more information about the error

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

Yes, i'm using the one you provided. ( https://github.com/YnwaFawzy/InstagramOSINT ) I downloaded it to my machine right from your github so I know its correct. I can open google and search fine (not a bot). What should i edit to print the HTML out?

image

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

can you provide me with a screenshot please , also you're using the one here https://github.com/YnwaFawzy/InstagramOSINT right ? , can you try to open the page normally in a browser to see if they consider you as a bot . and are you sure that you don't have any firewall that blocks the connection.

try to edit the program to print out the html just to get more information about the error

Above^

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

on line 57 where soup is created, write "print(soup)" after one line , and send the results , this will show the html source code and if the server is denying the access for a start

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

on line 57 where soup is created, write "print(soup)" after one line , and send the results , this will show the html source code and if the server is denying the access for a start

its in the zip, file called test. was a lot to past here
test.zip

from instagramosint.

kaushalag29 avatar kaushalag29 commented on July 4, 2024

@

on line 57 where soup is created, write "print(soup)" after one line , and send the results , this will show the html source code and if the server is denying the access for a start

its in the zip, file called test. was a lot to past here
test.zip

Meanwhile you can try my repo https://github.com/kaushalag29/InstagramOSINT

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

@

on line 57 where soup is created, write "print(soup)" after one line , and send the results , this will show the html source code and if the server is denying the access for a start

its in the zip, file called test. was a lot to past here
test.zip

Meanwhile you can try my repo https://github.com/kaushalag29/InstagramOSINT

I had the same issue with yours too, so not sure.

from instagramosint.

kaushalag29 avatar kaushalag29 commented on July 4, 2024

@

on line 57 where soup is created, write "print(soup)" after one line , and send the results , this will show the html source code and if the server is denying the access for a start

its in the zip, file called test. was a lot to past here
test.zip

Meanwhile you can try my repo https://github.com/kaushalag29/InstagramOSINT

I had the same issue with yours too, so not sure.

I have merged the code from "kaushalag29" branch to "master" branch, today itself. I don't know when you last tried with my repo. Please git pull before executing.

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

@

on line 57 where soup is created, write "print(soup)" after one line , and send the results , this will show the html source code and if the server is denying the access for a start

its in the zip, file called test. was a lot to past here
test.zip

Meanwhile you can try my repo https://github.com/kaushalag29/InstagramOSINT

I had the same issue with yours too, so not sure.

I have merged the code from "kaushalag29" branch to "master" branch, today itself. I don't know when you last tried with my repo. Please git pull before executing.

I downloaded it directly from your github page. Same issue still

from instagramosint.

kaushalag29 avatar kaushalag29 commented on July 4, 2024

@

on line 57 where soup is created, write "print(soup)" after one line , and send the results , this will show the html source code and if the server is denying the access for a start

its in the zip, file called test. was a lot to past here
test.zip

Meanwhile you can try my repo https://github.com/kaushalag29/InstagramOSINT

I had the same issue with yours too, so not sure.

I have merged the code from "kaushalag29" branch to "master" branch, today itself. I don't know when you last tried with my repo. Please git pull before executing.

I downloaded it directly from your github page. Same issue still

That's what I am asking, at what time you downloaded it? Plz download it again and try.

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

@

on line 57 where soup is created, write "print(soup)" after one line , and send the results , this will show the html source code and if the server is denying the access for a start

its in the zip, file called test. was a lot to past here
test.zip

Meanwhile you can try my repo https://github.com/kaushalag29/InstagramOSINT

I had the same issue with yours too, so not sure.

I have merged the code from "kaushalag29" branch to "master" branch, today itself. I don't know when you last tried with my repo. Please git pull before executing.

I downloaded it directly from your github page. Same issue still

That's what I am asking, at what time you downloaded it? Plz download it again and try.

I just re-downloaded it from your page now mate

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

ok , so this is really weird, let's try to go through it step by step, you might know why this is happening.

if you go through the source code that you sent , you will see that it asks you to login to Instagram , which I am not sure if this is a new update from their side or something wrong from yours.
you can verify that by checking the <title> login Instagram </title> , also you can see this link instagram.com/accounts/login?next=/google/ , which asks you to login first, so I accessed the link and logged in and it worked fine.

I've tried to check using curl request without editing the user agent , and it worked too ( the source code was matching the /google/ profile).

so the question is , are you accessing a newer version of Instagram web that probably didn't reflect to the servers in my region , I am not sure.

but just to confirm that , can you send me the output of this command "curl -X GET https://instagram.com/google/", and try to change the user agent in the tool it might work with you

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

Thats

ok , so this is really weird, let's try to go through it step by step, you might know why this is happening.

if you go through the source code that you sent , you will see that it asks you to login to Instagram , which I am not sure if this is a new update from their side or something wrong from yours.
you can verify that by checking the <title> login Instagram </title> , also you can see this link instagram.com/accounts/login?next=/google/ , which asks you to login first, so I accessed the link and logged in and it worked fine.

I've tried to check using curl request without editing the user agent , and it worked too ( the source code was matching the /google/ profile).

so the question is , are you accessing a newer version of Instagram web that probably didn't reflect to the servers in my region , I am not sure.

but just to confirm that , can you send me the output of this command "curl -X GET https://instagram.com/google/", and try to change the user agent in the tool it might work with you

Thats really weird, I see what your saying. I did a little research on it, and it seems that Instagram is now not allowing users to view profiles without logging in it seems.

If I login, will the script work, or will it still require manual sign in each request because it doesn't know my login. If its stored in cookeis will i work?

curl -X GET https://instagram.com/google doesn't show anything in console for me. nothing is returned.

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

sorry , try this curl -X GET https://instagram.com/google/

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

sorry , try this curl -X GET https://instagram.com/google/

curl -X GET https://instagram.com/google/
still nothing is returned

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

no problem, i'll just add the login functionality to the code , test it with private profiles and upload the solution, i'll ping you when i am done :D

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

no problem, i'll just add the login functionality to the code , test it with private profiles and upload the solution, i'll ping you when i am done :D

Woot! Your awesome

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@user333222 ok , i didn't expect it to be that fast , but check https://github.com/kaushalag29/InstagramOSINT again , and change "username_here" to your username and "password_here" to your password (keep the <>) .

this will add the ability to check for private profiles too ( i checked it on one profile and it worked !)

can you check it and confirm if it works

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@user333222 ok , i didn't expect it to be that fast , but check https://github.com/kaushalag29/InstagramOSINT again , and change "username_here" to your username and "password_here" to your password (keep the <>) .

this will add the ability to check for private profiles too ( i checked it on one profile and it worked !)

can you check it and confirm if it works

my bad , i meant this one https://github.com/YnwaFawzy/InstagramOSINT

from instagramosint.

user333222 avatar user333222 commented on July 4, 2024

I have no account to test, I created one and they want to take 24 hours to review it. So..... I will update you once I can try

@user333222 ok , i didn't expect it to be that fast , but check https://github.com/kaushalag29/InstagramOSINT again , and change "username_here" to your username and "password_here" to your password (keep the <>) .
this will add the ability to check for private profiles too ( i checked it on one profile and it worked !)
can you check it and confirm if it works

my bad , i meant this one https://github.com/YnwaFawzy/InstagramOSINT

I have no account to test, I created one and they want to take 24 hours to review it. So..... I will update you once I can try it. But it seems as you already tested it yourself.

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

sure tyt , waiting for your update

from instagramosint.

Mixlu101 avatar Mixlu101 commented on July 4, 2024

@YnwaFawzy
I have just tried your attempt to login on your fork.
Unfortunatly it's seems not working, I have an keyerror when using csrf = response.cookies['csrftoken'], there is no csrftoken cookie in the response.

from instagramosint.

Venkateshvenki404224 avatar Venkateshvenki404224 commented on July 4, 2024

Screenshot 2020-12-15 102823
I'am getting this above error
please help

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@Venkateshvenki404224 python3 main.py

from instagramosint.

Venkateshvenki404224 avatar Venkateshvenki404224 commented on July 4, 2024

python
I have the latest version of python as mentioned above image
Even though i am getting the error

from instagramosint.

San4ito avatar San4ito commented on July 4, 2024

Screenshot 2020-12-15 102823
I'am getting this above error
please help

Me too. I have python3.7 and get the same problem

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

@San4ito oh this is the latest version ,yea i wasn't sure it was working.

I'll check the error and update you guys.

from instagramosint.

San4ito avatar San4ito commented on July 4, 2024

@YnwaFawzy thanks a lot!!

from instagramosint.

 avatar commented on July 4, 2024

@Desze
So i checked your profile on the web browser , and strangely the description field doesn't exist ( as the json schema that should represent your profile <script type="application/ld+json"> ).

a quick fix is i checked if the json schema exist by adding

            if( description is not None):
              self.description = json.loads(description.string)

and then i divided the output into two parts ,the basic one and the description

`
self.profile_data = {"Username": self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['username'],
"Followers": self.text[0], "Following": self.text[2], "Posts": self.text[4],
"Bio": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['biography']),
"profile_pic_url": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'profile_pic_url_hd']),
"is_business_account": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'is_business_account']),
"connected_to_fb": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'connected_fb_page']),
"externalurl": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['external_url']),
"joined_recently": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'is_joined_recently']),
"business_category_name": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'business_category_name']),
"is_private": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['is_private']),
"is_verified": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['is_verified'])}

`

and for the description if found
if (description is not None): { "Profile name": self.description['name'], "URL": self.description['mainEntityofPage']['@id'], }

it should be working fine now , you can get the new file
main.py.zip

it works! thanks

from instagramosint.

w1th0ut avatar w1th0ut commented on July 4, 2024

@Desze
So i checked your profile on the web browser , and strangely the description field doesn't exist ( as the json schema that should represent your profile <script type="application/ld+json"> ).

a quick fix is i checked if the json schema exist by adding

            if( description is not None):
              self.description = json.loads(description.string)

and then i divided the output into two parts ,the basic one and the description

`
self.profile_data = {"Username": self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['username'],
"Followers": self.text[0], "Following": self.text[2], "Posts": self.text[4],
"Bio": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['biography']),
"profile_pic_url": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'profile_pic_url_hd']),
"is_business_account": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'is_business_account']),
"connected_to_fb": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'connected_fb_page']),
"externalurl": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['external_url']),
"joined_recently": str(self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'is_joined_recently']),
"business_category_name": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user'][
'business_category_name']),
"is_private": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['is_private']),
"is_verified": str(
self.profile_meta['entry_data']['ProfilePage'][0]['graphql']['user']['is_verified'])}

`

and for the description if found
if (description is not None): { "Profile name": self.description['name'], "URL": self.description['mainEntityofPage']['@id'], }

it should be working fine now , you can get the new file
main.py.zip

wow working, thanks!

from instagramosint.

cyclelogic avatar cyclelogic commented on July 4, 2024

I have the same issue. I cloned the repo today.

(root💀tlosint)-[/opt/InstagramOSINT]
└─# python3 --version
Python 3.8.6
┌──(root💀tlosint)-[/opt/InstagramOSINT]
└─# pip3 install -r requirements.txt
Requirement already satisfied: argparse in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 1)) (1.4.0)
Requirement already satisfied: bs4 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 2)) (0.0.1)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from -r requirements.txt (line 3)) (2.24.0)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from bs4->-r requirements.txt (line 2)) (4.9.3)
Requirement already satisfied: soupsieve>1.2 in /usr/lib/python3/dist-packages (from beautifulsoup4->bs4->-r requirements.txt (line 2)) (2.0.1)
┌──(root💀tlosint)-[/opt/InstagramOSINT]

python3 main.py --username hoopscoach123

Traceback (most recent call last):
File "main.py", line 284, in
main()
File "main.py", line 280, in main
osint = InstagramOSINT(username=args.username[0], downloadPhotos=args.downloadPhotos)
File "main.py", line 58, in init
csrf = response.cookies['csrftoken']
File "/usr/lib/python3/dist-packages/requests/cookies.py", line 328, in getitem
return self._find_no_duplicates(name)
File "/usr/lib/python3/dist-packages/requests/cookies.py", line 399, in _find_no_duplicates
raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: "name='csrftoken', domain=None, path=None"

from instagramosint.

cybot-spec avatar cybot-spec commented on July 4, 2024

Osintgram is showing incorrect username when it attempted to login. pls help to solve this problem

from instagramosint.

malashhab avatar malashhab commented on July 4, 2024

@YnwaFawzy amazing dude your method works but it doesn't work all the time i noticed that sometimes when the user have numbers in his username it says can't find user and other times it works it's so weird

from instagramosint.

Amroth898 avatar Amroth898 commented on July 4, 2024

Still not working for me, I get

[*] Starting Scan on ****
None
list index out of range
Username **** not found

from instagramosint.

jeatic avatar jeatic commented on July 4, 2024

Yes, I have the same problem. I don't know how to fix it, I have tested with all the main previously gaven. Do you have a solution?

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

check https://github.com/Datalux/Osintgram

from instagramosint.

Brewas avatar Brewas commented on July 4, 2024

Hello. I'm having an issue, when I enter the command: python3 main.py [targeted instagram account] it shows me an error:
Traceback (most recent call last):
File "/home/ew4fg5we/Osintgram/main.py", line 21, in
from banner import banner
ImportError: cannot import name 'banner' from 'banner' (/home/ew4fg5we/Osintgram/myenv/lib/python3.11/site-packages/banner/init.py)

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

i couldn't see this sentence in osintgram
from banner import banner
where did you get it ?

from instagramosint.

Brewas avatar Brewas commented on July 4, 2024

Okay seems i fixed banner error, but new one has occurred:

usage: main.py [-h] --username USERNAME [--downloadPhotos]
main.py: error: the following arguments are required: --username

I did put username and password into config file, still doesnt seem to work.

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

line 21 one from https://github.com/Datalux/Osintgram/blob/master/main.py has the following

pc.printout("\nVersion 1.1 - Developed by Giuseppe Criscione\n\n", pc.YELLOW)

from instagramosint.

Brewas avatar Brewas commented on July 4, 2024

Okay, so my Osintgram directory looks like this:
Screenshot_2023-03-26_18-13-54
I replaced main.py with new one (https://github.com/Datalux/Osintgram/blob/master/main.py)
But I still seem to get errors:
Traceback (most recent call last):
File "/home/ddtfvygbu/Osintgram/main.py", line 3, in
from src.Osintgram import Osintgram
File "/home/ddtfvygbu/Osintgram/src/Osintgram.py", line 13, in
from geopy.geocoders import Nominatim
ModuleNotFoundError: No module
Maybe I'm doing something wrong? Downloading wrong file, not putting them where they need to be?
Thanks for help.

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

you need to install geocoders module

from instagramosint.

Brewas avatar Brewas commented on July 4, 2024

I have already installed geocoders module, after I run python3 main.py [targeted username] it shows me this error:

Attempt to login...
Error parsing error response: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/aidlau/Osintgram/venv/lib/python3.11/site-packages/instagram_private_api/client.py", line 523, in _call_api
response = self.opener.open(req, timeout=self.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 563, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/aidlau/Osintgram/main.py", line 121, in
api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aidlau/Osintgram/src/Osintgram.py", line 48, in init
self.setTarget(target)
File "/home/aidlau/Osintgram/src/Osintgram.py", line 61, in setTarget
self.following = self.check_following()
^^^^^^^^^^^^^^^^^^^^^^
File "/home/aidlau/Osintgram/src/Osintgram.py", line 1159, in check_following
return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following']
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aidlau/Osintgram/venv/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api
ErrorHandler.process(e, error_response)
File "/home/aidlau/Osintgram/venv/lib/python3.11/site-packages/instagram_private_api/errors.py", line 135, in process
raise ClientError(error_msg, http_error.code, error_response)
instagram_private_api.errors.ClientError: Not Found

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

are you sure the username exists ? i can see HTTP Error 404: Not Found .

which username did you try

from instagramosint.

Brewas avatar Brewas commented on July 4, 2024

So i put in my own account username (the same username I saved in credentials.ini file) as targeted username and it seemed to work. When I try any other username, it doesn't. So does this mean, that the main.py only works on my own username?

from instagramosint.

Jlb15 avatar Jlb15 commented on July 4, 2024

@YnwaFawzy Can you help me?

from instagramosint.

Cybrarist avatar Cybrarist commented on July 4, 2024

try to ask the guys at osintgram, i think they might help you better as i didn't check their code

from instagramosint.

Gaurav60419430 avatar Gaurav60419430 commented on July 4, 2024

how do i fix this @Cybrarist
Screenshot 2024-01-09 081451

from instagramosint.

Adsf324 avatar Adsf324 commented on July 4, 2024

I have the same problem as you. What is the solution to this problem?

Run a command: info
Error parsing error response: Expecting value: line 1 column 1 (char 0)
Not Found
Oops... xlxx_ non exist, please enter a valid username.
Screenshot_2024-03-07_23_08_05
@Cybrarist

from instagramosint.

Related Issues (16)

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.