-
-
Notifications
You must be signed in to change notification settings - Fork 120
/
igdox.py
52 lines (37 loc) · 1.61 KB
/
igdox.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import requests
import json
from six.moves.urllib.request import urlopen
class dox:
def __init__(self, username):
link = "https://www.instagram.com/"+username+"/?__a=1"
response = urlopen(link)
final_process = "".join(map(chr, response.read()))
self.doxed = json.loads(final_process)
def username(self):
return self.doxed["graphql"]["user"]["username"]
def user_id(self):
return self.doxed["graphql"]["user"]["id"]
def fullname(self):
return self.doxed["graphql"]["user"]["full_name"]
def followers(self):
return self.doxed["graphql"]["user"]["edge_followed_by"]["count"]
def following(self):
return self.doxed["graphql"]["user"]["edge_follow"]["count"]
def profile_pic(self):
return self.doxed["graphql"]["user"]["profile_pic_url_hd"]
def bio(self):
return self.doxed["graphql"]["user"]["biography"]
def posts(self):
return self.doxed["graphql"]["user"]["edge_owner_to_timeline_media"]["count"]
def url(self):
return self.doxed["graphql"]["user"]["external_url"]
def business(self):
return self.doxed["graphql"]["user"]["is_business_account"]
def recently(self):
return self.doxed["graphql"]["user"]["is_joined_recently"]
def private(self):
return self.doxed["graphql"]["user"]["is_private"]
def verified(self):
return self.doxed["graphql"]["user"]["is_verified"]
def business_category(self):
return self.doxed["graphql"]["user"]["business_category_name"]