th3unkn0n / osi.ig Goto Github PK
View Code? Open in Web Editor NEWInformation Gathering Instagram.
Information Gathering Instagram.
Traceback (most recent call last):
File "main.py", line 16, in
user_info(usrname=args["user"])
File "/home/msi/tools/osi.ig/.lib/api.py", line 70, in user_info
js = json.loads(resp_js)
File "/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
can anyone help me?
Traceback (most recent call last):
File "/home/andrejki/osi.ig/main.py", line 16, in
user_info(usrname=args["user"])
File "/home/andrejki/osi.ig/.lib/api.py", line 70, in user_info
js = json.loads(resp_js)
File "/usr/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
osi.ig
Hey, thanks for this from the author, but people should be warned that this is definetely not working.
It might be time to resolve this in a way that it would be working or not working because it is your repisotory and something needs to be done as you can see by all the people posting here.
Best regards
Traceback (most recent call last):
File "/data/data/com.termux/files/home/osi.ig/main.py", line 16, in
user_info(usrname=args["user"])
File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 70, in user_info
js = json.loads(resp_js)
File "/data/data/com.termux/files/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/data/data/com.termux/files/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/data/data/com.termux/files/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Command: python3 main.py -u USERNAME
Result: getting profile ...Traceback (most recent call last): File "main.py", line 16, in <module> ig = main(user=args["username"]) File "/root/tools/osi.ig/.lib/api.py", line 59, in __init__ self.get_profile() File "/root/tools/osi.ig/.lib/api.py", line 74, in get_profile self.p_data = self.data['entry_data']['ProfilePage'][0]['graphql']['user'] KeyError: 'ProfilePage'
У меня тоже такая ошибка
Traceback (most recent call last): File "/data/data/com.termux/files/home/osi.ig/main.py", line 16, in
user_info(usrname=args["user"])
File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 70, in user_info
js = json.loads(resp_js)
File "/data/data/com.termux/files/usr/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/data/data/com.termux/files/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/data/data/com.termux/files/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
И как с ней бороться, я читал такие же комменты но я не понимаю как это сделать
[+] getting profile ...Traceback (most recent call last):
File "main.py", line 16, in <module>
ig = main(user=args["username"])
File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 58, in __init__
self.get_profile()
File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 65, in get_profile
self.data = json.loads(more_data[3].get_text()[21:].strip(';'))
File "/data/data/com.termux/files/usr/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/data/data/com.termux/files/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/data/data/com.termux/files/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
So, to struggle with some of the issues logging in may be a good solution. There already are some OSINT tools which have these functions, so maybe implement them?
python3 main.py -u user -p
Traceback (most recent call last):
File "main.py", line 19, in
post_info()
File "/home/kali/Desktop/osi.ig/.lib/api.py", line 194, in post_info
posts.append(highlight_post_info(x))
File "/home/kali/Desktop/osi.ig/.lib/api.py", line 112, in highlight_post_info
js = x['graphql']['user']['edge_owner_to_timeline_media']['edges'][i]['node']
IndexError: list index out of range
Hi , by try tu use OSI.ig
when i do the python3 -m pip install requirements.txt command i get this messange:
ERROR: Could not find a version that satisfies the requirement requirements.txt (from versions: none)
ERROR: No matching distribution found for requirements.txt
how i can solve it?
Traceback (most recent call last):
File "/data/data/com.termux/files/home/osi.ig/main.py", line 16, in
user_info(usrname=args["user"])
File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 70, in user_info
js = json.loads(resp_js)
File "/data/data/com.termux/files/usr/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/data/data/com.termux/files/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/data/data/com.termux/files/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Anyone can help me????? :(
Traceback (most recent call last):
File "/root/osi.ig/main.py", line 16, in
user_info(usrname=args["user"])
File "/root/osi.ig/.lib/api.py", line 70, in user_info
js = json.loads(resp_js)
File "/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
hi , what about adding information collection about IP-address, user emails, time activity about that account ?
Traceback (most recent call last): File "/data/data/com.termux/files/home/osi.ig/main.py", line 16, in
user_info(usrname=args["user"]) File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 71, in user_info js = js['graphql']['user'] KeyError: 'graphql'
getting profile ...Traceback (most recent call last):
File "main.py", line 15, in
ig = main(user=args["username"]) File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 51, in init
self.get_profile() File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 58, in get_profile self.data = json.loads(more_data[3].get_text()[21:].strip(';')) File "/data/data/com.termux/files/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s) File "/data/data/com.termux/files/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/data/data/com.termux/files/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/tea_enjoyer/Desktop/osi.ig/main.py", line 16, in
user_info(usrname=args["user"])
File "/home/tea_enjoyer/Desktop/osi.ig/.lib/api.py", line 70, in user_info
js = json.loads(resp_js)
File "/usr/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Not working idk why :(
(Can you help please)
File "main.py", line 16, in
ig = main(user=args["username"])
File "/content/osi.ig/.lib/api.py", line 59, in init
self.get_profile()
File "/content/osi.ig/.lib/api.py", line 74, in get_profile
self.p_data = self.data['entry_data']['ProfilePage'][0]['graphql']['user']
KeyError: 'ProfilePage'
Hello, do you think that by using your script, something like this could be achievable?:
Traceback (most recent call last): File "main.py", line 20, in <module> ig.print_data_() File "/home/gh/dev/osi.ig/.lib/api.py", line 115, in print_data_ if self.tags and self.tags == {}: AttributeError: 'main' object has no attribute 'tags'
I fix locally by embedding into try: except
File "main.py", line 19
ig = osi_ig(username=input(f'{colors.OKGREEN}[{colors.RED}+{colors.OKGREEN}] Enter User name :{colors.CYN} '))
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "main.py", line 20, in
ig.print_data_() File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 110, in print_data_
for key, value in collections.Counter(self.tags).most_common():
AttributeError: 'main' object has no attribute 'tags'
where and how to save a user profile or posts.
And I cannot see any posts.
Please help
python3 main.py
Traceback (most recent call last):
File "main.py", line 6, in
from api import *
File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 3, in
import bs4
ModuleNotFoundError: No module named 'bs4'
I built a small application to pull data from instagram using this api. It works locally but fails on the server.
Below is the error:
self.p_data = dadta['entry_data']['ProfilePage'][0]['graphql']['user']
KeyError: 'ProfilePage'
Traceback (most recent call last):
File "/data/data/com.termux/files/home/osi.ig/main.py", line 16, in user_info(usrname=args["user"]) File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 70, in user_info js = json.loads(resp_js) File "/data/data/com.termux/files/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s) File "/data/data/com.termux/files/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/data/data/com.termux/files/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/data/data/com.termux/files/home/osi.ig/main.py", line 16, in
user_info(usrname=args["user"])
File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 70, in user_info js = json.loads(resp_js)
File "/data/data/com.termux/files/usr/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/data/data/com.termux/files/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/data/data/com.termux/files/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
here I can't even imagine how to fix it
File "main.py", line 18, in
ig.print_data()
File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 133, in print_data
if self.tags == {}:
AttributeError: 'main' object has no attribute 'tags'
This what terminal says after enter the command for usage:
Traceback (most recent call last):
File "/home/kali/Desktop/insta/osi.ig/main.py", line 16, in
user_info(usrname=args["user"])
File "/home/kali/Desktop/insta/osi.ig/.lib/api.py", line 70, in user_info
js = json.loads(resp_js)
File "/usr/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Anyone have a solution for this?
File "main.py", line 20, in <module>
ig.print_data_()
File "C:\Users\Shahriyar\osi.ig/.lib\api.py", line 112, in print_data_
extra.banner()
File "C:\Users\Shahriyar\osi.ig/.lib\api.py", line 46, in banner
print(f"""{cy}
File "C:\Users\Shahriyar\AppData\Local\Programs\Python\Python38-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 10-12: character maps to <undefined>
So, I used this tool to find information about my Instagram. I have my Instagram profile connected with Facebook. And my Instagram page is a Business page.
But this tool is saying that I don't have my Facebook connected with Instagram.And it also says false for Business Page.
A quick fix may help me use this tool.
E: Unable to locate package osi.igE: Couldn't find any package by glob 'osi.ig»
requirements.txt do you need to create yourself or should it be downloaded?
when executing it tells me to use the original script, but when reviewing the repo I am using the most current version.
is the exception of line 9
Hello @th3unkn0n, sorry to bother you! I've been trying to solve this problem for 2 weeks and I still get the same error
I don't know what to do, I've searched everywhere on several forums and haven't found anyone who can help me
I hope you can help me. Thank you
Traceback (most recent call last):
File "/Users/XXXXXXXXX/Desktop/TeleGram-Scraper-master/scraper.py", line 80, in
all_participants = client.get_participants(target_group, aggressive=True)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/client/chats.py", line 507, in get_participants
return await self.iter_participants(*args, **kwargs).collect()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/requestiter.py", line 113, in collect
async for message in self:
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/requestiter.py", line 74, in anext
if await self._load_next_chunk():
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/client/chats.py", line 222, in _load_next_chunk
results = await self.client(self.requests)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/client/users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/client/users.py", line 80, in _call
raise MultiError(exceptions, results, requests)
telethon.errors.common.MultiError: ([None, FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), None, None, FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)')], [<telethon.tl.types.channels.ChannelParticipants object at 0x7f9518093460>, None, None, None, None, <telethon.tl.types.channels.ChannelParticipants object at 0x7f9558747a90>, <telethon.tl.types.channels.ChannelParticipants object at 0x7f9538904dc0>, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None], [<telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8157c10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8157cd0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8157d90>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8157e50>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8157f10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8157fd0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f81580d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158190>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158250>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158310>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f81583d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158490>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158550>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158610>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f81586d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158790>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158850>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158910>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f81589d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158a90>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158b50>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158c10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158cd0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158d90>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158e50>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f94f8158f10>])
jonathandemonchy@MacBook-Pro-de-Jonathan TeleGram-Scraper-master %
python3 main.py -u cristiano
returns error when trying to load the json (js = json.loads(resp_js
) because the query isn't returning json
but rather an html
page.
It seems I'm being asked to login:
...
<title>Login • Instagram</title>
...
[+] getting profile ...Traceback (most recent call last):
File "main.py", line 16, in
ig = main(user=args["username"])
File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 58, in init
self.get_profile()
File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 66, in get_profile
self.p_data = self.data['entry_data']['ProfilePage'][0]['graphql']['user']
KeyError: 'ProfilePage'
[+] getting profile ...Traceback (most recent call last):
File "main.py", line 15, in ig = main(user=args["username"]) File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 51, in init
self.get_profile() File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 58, in get_profile self.data = json.loads(more_data[3].get_text()[21:].strip(';')) File "/data/data/com.termux/files/usr/lib/python3.8/json/init.py", line 357, in loads return _default_decoder.decode(s)
File "/data/data/com.termux/files/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/data/data/com.termux/files/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.