This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from iprathammishra/new/e-mod
added instagram module and adding other things
- Loading branch information
Showing
16 changed files
with
147 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ dist/ | |
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
|
||
lib64/ | ||
parts/ | ||
sdist/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from lib.agents import user_agent | ||
from lib.requests import Requests | ||
import random | ||
from lib.text import * | ||
|
||
|
||
async def instagram(email): | ||
URL = "https://www.instagram.com/web/search/topsearch/?context=blended&query={}" | ||
|
||
headers = { | ||
'user-agent': random.choice(user_agent()), | ||
} | ||
|
||
try: | ||
r = await Requests(URL.format(email), headers).get() | ||
|
||
if r.status_code == 200: | ||
try: | ||
data = r.json() | ||
users = data.get('users', []) | ||
|
||
if not users: | ||
print(f"\rβ {RED}Instagram{WHITE}\n") | ||
else: | ||
user_info = users[0].get('user', {}) | ||
|
||
username = user_info.get('username', '') | ||
profile_pic_url = user_info.get('profile_pic_url', '') | ||
|
||
if username and profile_pic_url: | ||
print(f"""\rβοΈ {GREEN}Instagram{WHITE} | ||
βββUsername: {username} | ||
βββProfile Picture: {profile_pic_url}\n""") | ||
else: | ||
print(f"\rβ {RED}Instagram{WHITE}\n") | ||
|
||
except Exception: | ||
print(f"\rβ {RED}Instagram{WHITE}\n") | ||
|
||
except Exception: | ||
print("\rπ§ Instagram\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.