Giter Site home page Giter Site logo

th3unkn0n / osi.ig Goto Github PK

View Code? Open in Web Editor NEW
1.2K 59.0 202.0 153 KB

Information Gathering Instagram.

Python 98.55% Dockerfile 1.45%
python python3 instagram instagram-scraper information-gathering osint information-retrieval scraper termux-tool termux linux

osi.ig's Introduction

Open Source Information Instagram


so recently ig started sending html response insted of json to "unknown" requests.

i REALLY wanted this to work without login since i don't use ig anymore, tried few ways i knew to get it working without login but it didn't work :/

anyways since lot of people are using this i will add a temporary login to get this working asap


  • The Instagram OSINT Tool gets a range of information from an Instagram account that you normally wouldn't be able to get from just looking at their profile

  • The information includes:

  • [ profile ] : user id, followers / following, number of uploads, profile img URL, business enum, external URL, joined Recently, etc

  • [ tags & mentions ] : most used hashtags and mentioned accounts

  • [ email ] : if any email is used anywhere it'll be displayed

  • [ posts ] : accessability caption, location, timestamp, caption, picture url, etc

    • ( yet not working correctly with posts instagram marks as 'sensitive cotent' )

• How To Install

$ pkg install -y git

$ git clone https://github.com/th3unkn0n/osi.ig.git && cd osi.ig

$ python3 -m pip install -r requirements.txt

• Usage

$ python3 main.py -u username

$ python3 main.py -h

-p, --post images info highlight

• Update

$ git pull

osi.ig's People

Contributors

b1rdex avatar th3unkn0n avatar thexen0s avatar

Stargazers

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

Watchers

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

osi.ig's Issues

HELP MY

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)

Following Issues

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'

the script does not run

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

Traceback (most recent call last): File "/data/data/com.termux/files/home/osi.ig/main.py", line 16, in <module> 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'

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'

Profile Page

[+] 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'

fails on line 115 self.tags

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

ERRORRRR.How can i fix this

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

Error !

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)

Getting ModuleNotFound Error

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'

Error

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)

Error Traceback

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?

error

E: Unable to locate package osi.igE: Couldn't find any package by glob 'osi.ig»

Code error

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)

Error traceback

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?

osi.ig

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?

Argument -p does not return the posts

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

Not working - Json error

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

feature request

hi , what about adding information collection about IP-address, user emails, time activity about that account ?

Error Traceback (most recent call last)

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????? :(

saved file

where and how to save a user profile or posts.
And I cannot see any posts.
Please help

Help please / issues with TeleGram-Scraper

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 %


html not json returns from query

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>
...

Cant see the posts

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'

This is the Error code

#show error on running

[+] 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)
$

requirements.txt

requirements.txt do you need to create yourself or should it be downloaded?

Error

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'

Wrong Information About Facebook Connection & Business Page

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.

keyerror

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'

...

[+] 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)

REQUEST: add authorization functionality

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?

error

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

.

У меня тоже такая ошибка
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)
И как с ней бороться, я читал такие же комменты но я не понимаю как это сделать

User detial not showing

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)

Deployed application failing

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'

'charmap' codec can't encode characters in position 10-12: character maps to <undefined>

  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>

[Feature] Enhanced search and parsing by hashtags and results saving

Hello, do you think that by using your script, something like this could be achievable?:

  • Obtain a list of users which created a post containing one or more particular hashtags.
  • For each of the obtained users, also parse the following information:
    • bio
    • number of followers
    • number of followed accounts accounts
    • number of posts
    • account privacy (private or not)
    • profile picture availability
  • Save all of the above information for each of the obtained users.

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.