-
Notifications
You must be signed in to change notification settings - Fork 8
/
justgood.py
229 lines (165 loc) · 6.08 KB
/
justgood.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
import json, requests, threading
class imjustgood(threading.Thread):
def __init__(self, apikey):
super(imjustgood, self).__init__()
self.host = "https://api.imjustgood.com"
self.headers = {
"apikey": apikey,
"User-Agent":"Mozilla/5.0"
}
self.session = requests.Session()
def PrintJson(self, jhon):
print(json.dumps(jhon, indent=4, sort_keys=True))
def Get(self, path, headers=None):
if headers:
headers = {**headers, **self.headers}
else:
headers = self.headers
req = json.loads(self.session.get(self.host+path,headers=headers).text)
if req["status"] != 200:
raise Exception(req["message"])
return req
def Post(self, path, headers=None, data=None, files=None, jhon=None):
if headers:
headers = {**headers, **self.headers}
else:
headers = self.headers
req = json.loads(self.session.post(self.host+path,headers=headers,data=data,files=files,json=jhon).text)
if req["status"] != 200:
raise Exception(req["message"])
return req
"""
Usage:
@text = string
@name = string
@query = string
@url = url string
@imageUrl = url image
@path = file location
@userId = social user id
@chapterId = manga chapter
@code = city code
@city = city name | eg: jakarta
@sign = zodiac sign | eg: aries
@date = date-month-year | eg: 17-08-1945
@channnel = television channel
@lang = country code. check here >> https://api.imjustgood.com/language/code
"""
def youtube(self, query):
return self.Get("/youtube="+query)
def youtubedl(self, url):
return self.Get("/youtubedl="+url)
def joox(self, query):
return self.Get("/joox="+query)
def lyric(self, query):
return self.Get("/lyric="+query)
def smule(self, userId):
return self.Get("/smule="+userId)
def smuledl(self, url):
return self.Get("/smuledl="+url)
def tiktok(self, userId):
return self.Get("/tiktok="+userId)
def tiktokdl(self, url):
return self.Get("/tiktokdl="+url)
def instagram(self, userId):
return self.Get("/instagram="+userId)
def instapost(self, url):
return self.Get("/instapost="+url)
def instastory(self, userId):
return self.Get("/instastory="+userId)
def twitter(self, userId):
return self.Get("/twitter="+userId)
def twitterdl(self, url):
return self.Get("/twitter/video?url="+url)
def facebookdl(self, url):
return self.Get("/facebook/video?url="+url)
def github(self, userId):
return self.Get("/github="+userId)
def playstore(self, query):
return self.Get("/playstore="+query)
def translate(self, lang, text):
return self.Get("/translate/"+lang+"="+text)
def image(self, query):
return self.Get("/image="+query)
def wallpaper(self, query):
return self.Get("/wallpaper="+query)
def porn(self, query):
return self.Get("/porn="+query)
def pornstar(self):
return self.Get("/pornstar")
def hentai(self):
return self.Get("/hentai")
def kamasutra(self):
return self.Get("/kamasutra")
def dick(self):
return self.Get("/dick")
def tits(self):
return self.Get("/tits")
def vagina(self):
return self.Get("/vagina")
def meme(self, text1, text2, imageUrl):
return self.Get("/meme/"+text1+"/"+text2+"/url="+imageUrl)
def movie(self, query):
return self.Get("/movie="+query)
def movie_quotes(self):
return self.Get("/movie/quotes")
def cinema(self, city):
return self.Get("/cinema="+city)
def tinyurl(self, url):
return self.Get("/tinyurl="+url)
def bitly(self, url):
return self.Get("/bitly="+url)
def kbbi(self, query):
return self.Get("/kbbi="+query)
def topnews(self):
return self.Get("/topnews")
def wikipedia(self, query):
return self.Get("/wikipedia="+query)
def urban(self, query):
return self.Get("/urban="+query)
def zodiac(self, sign):
return self.Get("/zodiac="+sign)
def adzan(self, city):
return self.Get("/adzan="+city)
def cuaca(self, city):
return self.Get("/cuaca="+city)
def bmkg(self):
return self.Get("/bmkg")
def corona(self):
return self.Get("/corona")
def karir(self):
return self.Get("/karir")
def cellular(self, query):
return self.Get("/cell="+query)
def lahir(self, date):
return self.Get("/lahir="+date)
def jadian(self, date):
return self.Get("/jadian="+date)
def nama(self, name):
return self.Get("/nama="+name)
def mimpi(self, query):
return self.Get("/mimpi="+query)
def acaratv(self):
return self.Get("/acaratv/now")
def acaratv_channel(self, channel):
return self.Get("/acaratv="+channel)
def cctv_code(self):
return self.Get("/cctv/code")
def cctvSearch(self, code):
return self.Get("/cctv/search/id="+code)
def mangaSearch(self, query):
return self.Get("/manga/search="+query)
def mangaChapter(self, chapterId):
return self.Get("/manga/chapter="+chapterId)
def timeline(self, url):
return self.Get("/timeline="+url)
def resi(self, query, code):
return self.Get("/resi/"+query+"="+code)
def screenshot(self, url):
return self.Get("/screenshot?url="+url)
def imgurl(self, path):
return self.Post("/imgurl",files={"file": open(path,"rb")})
def gif(self, query):
return self.Get("/gif="+query)
def search(self, query):
return self.Get("/search="+query)