Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development version (1.4) #346

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install bandit black codespell flake8 isort mypy pytest pyupgrade safety
- run: pip install bandit black codespell flake8 isort mypy pytest pyupgrade safety types-requests
- run: bandit -r . || true
- run: black --check . || true
- run: codespell --ignore-words-list="followings" --quiet-level=2
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- run: isort --check-only --profile black . || true
- run: pip install -r requirements.txt
- run: mypy --ignore-missing-imports .
- run: mypy --ignore-missing-imports --install-types .
- run: pytest . || true
- run: pytest --doctest-modules . || true
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Osintgram offers an interactive shell to perform analysis on Instagram account o
- addrs Get all registered addressed by target photos
- captions Get user's photos captions
- comments Get total comments of target's posts
- commentdata Get a list of all the comments on the target's posts
- followers Get target followers
- followings Get users followed by target
- fwersemail Get email of target followers
Expand Down
3 changes: 3 additions & 0 deletions doc/COMMANDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ The list has post, address and date fields.
### captions
Return a list of all captions used by target in his photos.

### commentdata
Return a list of all the comments on the target's posts

### comments
Return the total number of comments in target's posts

Expand Down
14 changes: 10 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ def cmdlist():
print("Get users followed by target")
pc.printout("fwersemail\t")
print("Get email of target followers")
pc.printout("fwingsemail\t")
print("Get email of users followed by target")
pc.printout("fwersnumber\t")
print("Get phone number of target followers")
pc.printout("fwersubset\t")
print("Get the list of users who follow both target1 and target2")
pc.printout("fwingsemail\t")
print("Get email of users followed by target")
pc.printout("fwingsnumber\t")
print("Get phone number of users followed by target")
print("Get phone number of users followed by target")
pc.printout("fwingsubset\t")
print("Get the list of users followed by both target1 and target2")
pc.printout("hashtags\t")
print("Get hashtags used by target")
pc.printout("info\t\t")
Expand Down Expand Up @@ -135,9 +139,11 @@ def _quit():
'followers': api.get_followers,
'followings': api.get_followings,
'fwersemail': api.get_fwersemail,
'fwingsemail': api.get_fwingsemail,
'fwersnumber': api.get_fwersnumber,
'fwersubset': api.get_followers_subset,
'fwingsemail': api.get_fwingsemail,
'fwingsnumber': api.get_fwingsnumber,
'fwingsubset': api.get_followings_subset,
'hashtags': api.get_hashtags,
'info': api.get_user_info,
'likes': api.get_total_likes,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
requests==2.24.0
requests-toolbelt==0.9.1
geopy>=2.0.0
prettytable==0.7.2
prettytable
instagram-private-api==1.6.0
gnureadline>=8.0.0; platform_system != "Windows"
pyreadline==2.1; platform_system == "Windows"