Integrate Osintgram into Custom Python Scripts
You can invoke Osintgram commands without shelling out.
Example
from src.osintgram import Osintgram
client = Osintgram('targetuser')
client.login()
info = client.get_info()
print(info.to_dict())Headless execution
from src.osintgram import Osintgram
with Osintgram('target', output='output') as cli:
followers = cli.get_followers()
for follower in followers:
print(follower.username)Diagram
flowchart LR
A[Custom script] --> B[Osintgram Client]
B --> C[Instagram]
B --> D[JSON result]
Remember to respect rate limits—wrap calls with time.sleep() between requests.