-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
3787 lines (3182 loc) · 202 KB
/
main.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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# coding: utf8
from anticaptchaofficial.hcaptchaproxyless import hCaptchaProxyless as AnticaptchaTask
from capmonster_python import HCaptchaTask as CapmonsterTask
from capsolver_python import HCaptchaTask as CapsolverTask
from concurrent.futures import ThreadPoolExecutor
from Crypto.Util.Padding import pad, unpad
from Crypto.Random import get_random_bytes
from Crypto.Util.Padding import pad,unpad
from websocket import create_connection
from datetime import datetime, timezone
from base64 import b64encode, b64decode
from colorama import Fore, Style, Back
from dataclasses import dataclass
from discord.ext import commands
from websocket import WebSocket
from datetime import datetime
from Crypto.Cipher import AES
from base64 import b64encode
from itertools import cycle
from decimal import Decimal
import json, sys, base64
from pathlib import Path
from json import dumps
import json as jsond
import subprocess
import tls_client
import webbrowser
import threading
import websocket
import pyperclip
import delorean
import binascii
import requests
import hashlib
import secrets
import pystyle
import zipfile
import discord
import asyncio
import winreg
import psutil
import string
import shutil
import random
import typing
import httpx
import types
import time
import colr
import ssl
import sys
import re
import os
os.system("cls")
# -- Define Constants
LOGGING_PATH = (
Path.home() / "AppData/Roaming/dazeer/logs/Dazeer.log"
# ""
) # -- This can be any path
pystyle.Cursor.HideCursor()
global menu_str
menu_str = ""
from functools import wraps
def sslwrap(func):
@wraps(func)
def bar(*args, **kw):
kw['ssl_version'] = ssl.PROTOCOL_TLSv1
return func(*args, **kw)
return bar
ssl.wrap_socket = sslwrap(ssl.wrap_socket)
print("Getting client information...")
class DiscordInfo:
_req = requests.get("https://raw.githubusercontent.com/EffeDiscord/discord-api/main/fetch").json()
build_num = int(_req['client_build_number'])
browser_version = _req["chrome_version"].split(".")[0]
user_agent = _req['chrome_user_agent']
_get_mobile_x_super_properties = base64.b64encode((json.dumps(separators=(',', ':'), obj={
"os": "Windows",
"browser": "Chrome",
"device": "",
"system_locale": "en-US",
"browser_user_agent": user_agent,
"browser_version": f"{browser_version}.0.0.0",
"os_version": "10",
"referrer": "",
"referring_domain": "",
"referrer_current": "",
"referring_domain_current": "",
"release_channel": "stable",
"client_build_number": build_num,
"client_event_source": None,
"design_id": 0
})).encode()).decode()
default_headers = None
__all__ = [
'GlobalInfo',
]
class GlobalInfo:
VERSION: str = "3.2.1"
WHITELISTED_SERVER: list[str] = [
"1044794654882791455",
"986666459583348796",
"1082763111431405711",
"1096390599684395140"
]
class CaptchaType:
capmonster = 1
anticaptcha = 2
capsolver = 3
dort = 4
class BypassableBots:
CAPTCHA_BOT = "captcha.bot"
RESTORECORD = "restorecord.com"
WICK = "wickbot.com"
class SpammerOptions:
ping_amount: int = 0
massping: bool = False
multi_message: bool = False
users: list[str] = []
guild_id: int = 0
invisible_pings: bool = False
channel_ids: list[str] = []
msg_amount: int = 0
messages: list[str] = []
crypt_message: bool = False
emoji_message: bool = False
massping_users: list[str] = []
massping_iter: cycle = None
delay: float = 0.0
class OnboardingInfo:
guild_id: int = 0
required_prompts: list[dict[str, typing.Union[str, list[typing.Union[str, dict, list, bool, None]]]]] = []
onboarding_prompts_seen: dict[str, int] = {}
onboarding_responses_seen: dict[str, int] = {}
onboarding_responses: list[str] = [] # answers have to be in order of the prompts
__lock__ = threading.Lock()
spotify_songs = [{"album_type":"album","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/757aE44tKEUQEqRuT6GnEB"},"href":"https://api.spotify.com/v1/artists/757aE44tKEUQEqRuT6GnEB","id":"757aE44tKEUQEqRuT6GnEB","name":"Roddy Ricch","type":"artist","uri":"spotify:artist:757aE44tKEUQEqRuT6GnEB"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/1eVrpJbHRLBbioB9sb5b94"},"href":"https://api.spotify.com/v1/albums/1eVrpJbHRLBbioB9sb5b94","id":"1eVrpJbHRLBbioB9sb5b94","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b2738007e1fcf108e4270b6df942","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e028007e1fcf108e4270b6df942","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d000048518007e1fcf108e4270b6df942","width":64}],"name":"LIVE LIFE FAST","release_date":"2021-12-17","release_date_precision":"day","total_tracks":18,"type":"album","uri":"spotify:album:1eVrpJbHRLBbioB9sb5b94"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/0urTpYCsixqZwgNTkPJOJ4"},"href":"https://api.spotify.com/v1/artists/0urTpYCsixqZwgNTkPJOJ4","id":"0urTpYCsixqZwgNTkPJOJ4","name":"Aaliyah","type":"artist","uri":"spotify:artist:0urTpYCsixqZwgNTkPJOJ4"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/2t0AfNqhtlMnjFxbTzmPqO"},"href":"https://api.spotify.com/v1/albums/2t0AfNqhtlMnjFxbTzmPqO","id":"2t0AfNqhtlMnjFxbTzmPqO","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b273bfa88fd0ac35dca91e77598a","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e02bfa88fd0ac35dca91e77598a","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d00004851bfa88fd0ac35dca91e77598a","width":64}],"name":"Poison (feat. The Weeknd)","release_date":"2021-12-17","release_date_precision":"day","total_tracks":1,"type":"album","uri":"spotify:album:2t0AfNqhtlMnjFxbTzmPqO"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/5YkBrE0wF8cAlq3GCOw5Eu"},"href":"https://api.spotify.com/v1/artists/5YkBrE0wF8cAlq3GCOw5Eu","id":"5YkBrE0wF8cAlq3GCOw5Eu","name":"Best Coast","type":"artist","uri":"spotify:artist:5YkBrE0wF8cAlq3GCOw5Eu"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/1vLgVmLSQgEEM8SBZ4QQQd"},"href":"https://api.spotify.com/v1/albums/1vLgVmLSQgEEM8SBZ4QQQd","id":"1vLgVmLSQgEEM8SBZ4QQQd","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b273262af6f60ed3a93688dce24d","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e02262af6f60ed3a93688dce24d","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d00004851262af6f60ed3a93688dce24d","width":64}],"name":"Leading","release_date":"2021-12-14","release_date_precision":"day","total_tracks":1,"type":"album","uri":"spotify:album:1vLgVmLSQgEEM8SBZ4QQQd"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/28gNT5KBp7IjEOQoevXf9N"},"href":"https://api.spotify.com/v1/artists/28gNT5KBp7IjEOQoevXf9N","id":"28gNT5KBp7IjEOQoevXf9N","name":"Camilo","type":"artist","uri":"spotify:artist:28gNT5KBp7IjEOQoevXf9N"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/3b2z5O7s1vxHaaTsn1J1Cz"},"href":"https://api.spotify.com/v1/albums/3b2z5O7s1vxHaaTsn1J1Cz","id":"3b2z5O7s1vxHaaTsn1J1Cz","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b2737f067a921cc40f4111475a09","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e027f067a921cc40f4111475a09","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d000048517f067a921cc40f4111475a09","width":64}],"name":"Pesadilla","release_date":"2021-12-14","release_date_precision":"day","total_tracks":1,"type":"album","uri":"spotify:album:3b2z5O7s1vxHaaTsn1J1Cz"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/6nB0iY1cjSY1KyhYyuIIKH"},"href":"https://api.spotify.com/v1/artists/6nB0iY1cjSY1KyhYyuIIKH","id":"6nB0iY1cjSY1KyhYyuIIKH","name":"FKA twigs","type":"artist","uri":"spotify:artist:6nB0iY1cjSY1KyhYyuIIKH"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/633MrZ9lAeFFydmcMENiuA"},"href":"https://api.spotify.com/v1/albums/633MrZ9lAeFFydmcMENiuA","id":"633MrZ9lAeFFydmcMENiuA","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b273c813333a4bf7b81e7a251566","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e02c813333a4bf7b81e7a251566","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d00004851c813333a4bf7b81e7a251566","width":64}],"name":"Tears In The Club (feat. The Weeknd)","release_date":"2021-12-16","release_date_precision":"day","total_tracks":1,"type":"album","uri":"spotify:album:633MrZ9lAeFFydmcMENiuA"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/1fctva4kpRbg2k3v7kwRuS"},"href":"https://api.spotify.com/v1/artists/1fctva4kpRbg2k3v7kwRuS","id":"1fctva4kpRbg2k3v7kwRuS","name":"Rvssian","type":"artist","uri":"spotify:artist:1fctva4kpRbg2k3v7kwRuS"},{"external_urls":{"spotify":"https://open.spotify.com/artist/1RyvyyTE3xzB2ZywiAwp0i"},"href":"https://api.spotify.com/v1/artists/1RyvyyTE3xzB2ZywiAwp0i","id":"1RyvyyTE3xzB2ZywiAwp0i","name":"Future","type":"artist","uri":"spotify:artist:1RyvyyTE3xzB2ZywiAwp0i"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/1qY5LCrtZDIsh6A86N2Yo2"},"href":"https://api.spotify.com/v1/albums/1qY5LCrtZDIsh6A86N2Yo2","id":"1qY5LCrtZDIsh6A86N2Yo2","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b27380a85658a64eb32504ce426d","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e0280a85658a64eb32504ce426d","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d0000485180a85658a64eb32504ce426d","width":64}],"name":"M&M (with Future feat. Lil Baby)","release_date":"2021-12-15","release_date_precision":"day","total_tracks":1,"type":"album","uri":"spotify:album:1qY5LCrtZDIsh6A86N2Yo2"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/3wcj11K77LjEY1PkEazffa"},"href":"https://api.spotify.com/v1/artists/3wcj11K77LjEY1PkEazffa","id":"3wcj11K77LjEY1PkEazffa","name":"Burna Boy","type":"artist","uri":"spotify:artist:3wcj11K77LjEY1PkEazffa"}],"available_markets":["AD","AE","AG","AL","AM","AR","AT","AU","AZ","BA","BB","BD","BE","BG","BH","BN","BO","BR","BS","BT","BY","BZ","CA","CH","CL","CO","CR","CW","CY","CZ","DE","DK","DM","DO","EC","EE","ES","FI","FJ","FM","FR","GB","GD","GE","GR","GT","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KG","KH","KI","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LT","LU","LV","MC","MD","ME","MH","MK","MN","MO","MT","MV","MX","MY","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","SA","SB","SE","SG","SI","SK","SM","SR","SV","TH","TJ","TL","TO","TR","TT","TV","TW","UA","US","UY","UZ","VC","VE","VN","VU","WS","XK"],"external_urls":{"spotify":"https://open.spotify.com/album/2Nwv16YY4xo8Jm4TVm54i9"},"href":"https://api.spotify.com/v1/albums/2Nwv16YY4xo8Jm4TVm54i9","id":"2Nwv16YY4xo8Jm4TVm54i9","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b273ed808ecd866a67c6e47e33f9","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e02ed808ecd866a67c6e47e33f9","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d00004851ed808ecd866a67c6e47e33f9","width":64}],"name":"B. D’OR (feat. Wizkid)","release_date":"2021-12-14","release_date_precision":"day","total_tracks":1,"type":"album","uri":"spotify:album:2Nwv16YY4xo8Jm4TVm54i9"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/6fWVd57NKTalqvmjRd2t8Z"},"href":"https://api.spotify.com/v1/artists/6fWVd57NKTalqvmjRd2t8Z","id":"6fWVd57NKTalqvmjRd2t8Z","name":"24kGoldn","type":"artist","uri":"spotify:artist:6fWVd57NKTalqvmjRd2t8Z"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/0r9uTlzVUjnRvBTGjTLC54"},"href":"https://api.spotify.com/v1/albums/0r9uTlzVUjnRvBTGjTLC54","id":"0r9uTlzVUjnRvBTGjTLC54","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b273afae5ae58eb98ab9eb032c47","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e02afae5ae58eb98ab9eb032c47","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d00004851afae5ae58eb98ab9eb032c47","width":64}],"name":"More Than Friends","release_date":"2021-12-17","release_date_precision":"day","total_tracks":1,"type":"album","uri":"spotify:album:0r9uTlzVUjnRvBTGjTLC54"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/6TLwD7HPWuiOzvXEa3oCNe"},"href":"https://api.spotify.com/v1/artists/6TLwD7HPWuiOzvXEa3oCNe","id":"6TLwD7HPWuiOzvXEa3oCNe","name":"Oliver Tree","type":"artist","uri":"spotify:artist:6TLwD7HPWuiOzvXEa3oCNe"},{"external_urls":{"spotify":"https://open.spotify.com/artist/6Xgp2XMz1fhVYe7i6yNAax"},"href":"https://api.spotify.com/v1/artists/6Xgp2XMz1fhVYe7i6yNAax","id":"6Xgp2XMz1fhVYe7i6yNAax","name":"Trippie Redd","type":"artist","uri":"spotify:artist:6Xgp2XMz1fhVYe7i6yNAax"},{"external_urls":{"spotify":"https://open.spotify.com/artist/2rhFzFmezpnW82MNqEKVry"},"href":"https://api.spotify.com/v1/artists/2rhFzFmezpnW82MNqEKVry","id":"2rhFzFmezpnW82MNqEKVry","name":"Ski Mask The Slump God","type":"artist","uri":"spotify:artist:2rhFzFmezpnW82MNqEKVry"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/1ucf98ip08W4dY41QZrXeq"},"href":"https://api.spotify.com/v1/albums/1ucf98ip08W4dY41QZrXeq","id":"1ucf98ip08W4dY41QZrXeq","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b273925275230e6804c9a6585269","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e02925275230e6804c9a6585269","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d00004851925275230e6804c9a6585269","width":64}],"name":"Life Goes On (feat. Trippie Redd & Ski Mask The Slump God)","release_date":"2021-12-17","release_date_precision":"day","total_tracks":2,"type":"album","uri":"spotify:album:1ucf98ip08W4dY41QZrXeq"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/4IVAbR2w4JJNJDDRFP3E83"},"href":"https://api.spotify.com/v1/artists/4IVAbR2w4JJNJDDRFP3E83","id":"4IVAbR2w4JJNJDDRFP3E83","name":"6LACK","type":"artist","uri":"spotify:artist:4IVAbR2w4JJNJDDRFP3E83"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/06nzu940k6jhkJ5TacM6y5"},"href":"https://api.spotify.com/v1/albums/06nzu940k6jhkJ5TacM6y5","id":"06nzu940k6jhkJ5TacM6y5","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b2738b6812afed07f32cbeeb6d6b","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e028b6812afed07f32cbeeb6d6b","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d000048518b6812afed07f32cbeeb6d6b","width":64}],"name":"Rent Free / By Any Means","release_date":"2021-12-17","release_date_precision":"day","total_tracks":2,"type":"album","uri":"spotify:album:06nzu940k6jhkJ5TacM6y5"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/4lPl9gqgox3JDiaJ1yklKh"},"href":"https://api.spotify.com/v1/artists/4lPl9gqgox3JDiaJ1yklKh","id":"4lPl9gqgox3JDiaJ1yklKh","name":"Tierra Whack","type":"artist","uri":"spotify:artist:4lPl9gqgox3JDiaJ1yklKh"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/1OTZupPjEaLRA8mbO4qvKz"},"href":"https://api.spotify.com/v1/albums/1OTZupPjEaLRA8mbO4qvKz","id":"1OTZupPjEaLRA8mbO4qvKz","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b273cd6660cb55c09a195ed326ac","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e02cd6660cb55c09a195ed326ac","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d00004851cd6660cb55c09a195ed326ac","width":64}],"name":"R&B?","release_date":"2021-12-16","release_date_precision":"day","total_tracks":3,"type":"album","uri":"spotify:album:1OTZupPjEaLRA8mbO4qvKz"},{"album_type":"album","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/35CsFzAi3BR19Ar1wRlPb6"},"href":"https://api.spotify.com/v1/artists/35CsFzAi3BR19Ar1wRlPb6","id":"35CsFzAi3BR19Ar1wRlPb6","name":"Johnny Klimek","type":"artist","uri":"spotify:artist:35CsFzAi3BR19Ar1wRlPb6"},{"external_urls":{"spotify":"https://open.spotify.com/artist/1YtTF1pj1ZFufjkP0BEfWE"},"href":"https://api.spotify.com/v1/artists/1YtTF1pj1ZFufjkP0BEfWE","id":"1YtTF1pj1ZFufjkP0BEfWE","name":"Tom Tykwer","type":"artist","uri":"spotify:artist:1YtTF1pj1ZFufjkP0BEfWE"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/6RjA1eIgIas30qqvsu0X9W"},"href":"https://api.spotify.com/v1/albums/6RjA1eIgIas30qqvsu0X9W","id":"6RjA1eIgIas30qqvsu0X9W","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b2739c3c13a0643e08a6ccd53b59","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e029c3c13a0643e08a6ccd53b59","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d000048519c3c13a0643e08a6ccd53b59","width":64}],"name":"The Matrix Resurrections (Original Motion Picture Soundtrack)","release_date":"2021-12-17","release_date_precision":"day","total_tracks":35,"type":"album","uri":"spotify:album:6RjA1eIgIas30qqvsu0X9W"},{"album_type":"album","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/15iVAtD3s3FsQR4w1v6M0P"},"href":"https://api.spotify.com/v1/artists/15iVAtD3s3FsQR4w1v6M0P","id":"15iVAtD3s3FsQR4w1v6M0P","name":"Chief Keef","type":"artist","uri":"spotify:artist:15iVAtD3s3FsQR4w1v6M0P"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/117i43x9P3zxUQ7UAcxrBV"},"href":"https://api.spotify.com/v1/albums/117i43x9P3zxUQ7UAcxrBV","id":"117i43x9P3zxUQ7UAcxrBV","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b2730f30c5c8809fa6e6776dceaa","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e020f30c5c8809fa6e6776dceaa","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d000048510f30c5c8809fa6e6776dceaa","width":64}],"name":"4NEM","release_date":"2021-12-17","release_date_precision":"day","total_tracks":15,"type":"album","uri":"spotify:album:117i43x9P3zxUQ7UAcxrBV"},{"album_type":"album","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/13y7CgLHjMVRMDqxdx0Xdo"},"href":"https://api.spotify.com/v1/artists/13y7CgLHjMVRMDqxdx0Xdo","id":"13y7CgLHjMVRMDqxdx0Xdo","name":"Gucci Mane","type":"artist","uri":"spotify:artist:13y7CgLHjMVRMDqxdx0Xdo"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/2akb547l1kwTss6MNU3JyG"},"href":"https://api.spotify.com/v1/albums/2akb547l1kwTss6MNU3JyG","id":"2akb547l1kwTss6MNU3JyG","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b273b6792af95651e0c486a2ee62","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e02b6792af95651e0c486a2ee62","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d00004851b6792af95651e0c486a2ee62","width":64}],"name":"So Icy Christmas","release_date":"2021-12-17","release_date_precision":"day","total_tracks":17,"type":"album","uri":"spotify:album:2akb547l1kwTss6MNU3JyG"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/5QdyldG4Fl4TPiOIeMNpBZ"},"href":"https://api.spotify.com/v1/artists/5QdyldG4Fl4TPiOIeMNpBZ","id":"5QdyldG4Fl4TPiOIeMNpBZ","name":"Big Thief","type":"artist","uri":"spotify:artist:5QdyldG4Fl4TPiOIeMNpBZ"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/13lNwYutq39VEtYK5nJ617"},"href":"https://api.spotify.com/v1/albums/13lNwYutq39VEtYK5nJ617","id":"13lNwYutq39VEtYK5nJ617","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b27355bc98763f20825e58285a30","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e0255bc98763f20825e58285a30","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d0000485155bc98763f20825e58285a30","width":64}],"name":"No Reason / Spud Infinity","release_date":"2021-12-14","release_date_precision":"day","total_tracks":7,"type":"album","uri":"spotify:album:13lNwYutq39VEtYK5nJ617"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/3IhWQSrLj8EJjdvjFTpCyo"},"href":"https://api.spotify.com/v1/artists/3IhWQSrLj8EJjdvjFTpCyo","id":"3IhWQSrLj8EJjdvjFTpCyo","name":"Vince Gill","type":"artist","uri":"spotify:artist:3IhWQSrLj8EJjdvjFTpCyo"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/15t2WXfpVffaNOo92Z3mr0"},"href":"https://api.spotify.com/v1/albums/15t2WXfpVffaNOo92Z3mr0","id":"15t2WXfpVffaNOo92Z3mr0","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b2732b0bdfbac00a11bf1260d5c5","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e022b0bdfbac00a11bf1260d5c5","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d000048512b0bdfbac00a11bf1260d5c5","width":64}],"name":"Love Changes Everything (From The Motion Picture American Underdog)","release_date":"2021-12-17","release_date_precision":"day","total_tracks":1,"type":"album","uri":"spotify:album:15t2WXfpVffaNOo92Z3mr0"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/77AiFEVeAVj2ORpC85QVJs"},"href":"https://api.spotify.com/v1/artists/77AiFEVeAVj2ORpC85QVJs","id":"77AiFEVeAVj2ORpC85QVJs","name":"Steve Aoki","type":"artist","uri":"spotify:artist:77AiFEVeAVj2ORpC85QVJs"},{"external_urls":{"spotify":"https://open.spotify.com/artist/1lzugG0lqNh9nP6Fp2zG3c"},"href":"https://api.spotify.com/v1/artists/1lzugG0lqNh9nP6Fp2zG3c","id":"1lzugG0lqNh9nP6Fp2zG3c","name":"Global Dan","type":"artist","uri":"spotify:artist:1lzugG0lqNh9nP6Fp2zG3c"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/4su0t3XDFmCCdQaQXd51no"},"href":"https://api.spotify.com/v1/albums/4su0t3XDFmCCdQaQXd51no","id":"4su0t3XDFmCCdQaQXd51no","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b2735cfd6668f148e3669a0a31f1","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e025cfd6668f148e3669a0a31f1","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d000048515cfd6668f148e3669a0a31f1","width":64}],"name":"Stars Don't Shine (feat. Global Dan)","release_date":"2021-12-17","release_date_precision":"day","total_tracks":1,"type":"album","uri":"spotify:album:4su0t3XDFmCCdQaQXd51no"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/41X1TR6hrK8Q2ZCpp2EqCz"},"href":"https://api.spotify.com/v1/artists/41X1TR6hrK8Q2ZCpp2EqCz","id":"41X1TR6hrK8Q2ZCpp2EqCz","name":"bbno$","type":"artist","uri":"spotify:artist:41X1TR6hrK8Q2ZCpp2EqCz"},{"external_urls":{"spotify":"https://open.spotify.com/artist/2IDLDx25HU1nQMKde4n61a"},"href":"https://api.spotify.com/v1/artists/2IDLDx25HU1nQMKde4n61a","id":"2IDLDx25HU1nQMKde4n61a","name":"Rich Brian","type":"artist","uri":"spotify:artist:2IDLDx25HU1nQMKde4n61a"},{"external_urls":{"spotify":"https://open.spotify.com/artist/5fMUXHkw8R8eOP2RNVYEZX"},"href":"https://api.spotify.com/v1/artists/5fMUXHkw8R8eOP2RNVYEZX","id":"5fMUXHkw8R8eOP2RNVYEZX","name":"Diplo","type":"artist","uri":"spotify:artist:5fMUXHkw8R8eOP2RNVYEZX"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/2pcFjaO7Eouy8DiDV9mmjW"},"href":"https://api.spotify.com/v1/albums/2pcFjaO7Eouy8DiDV9mmjW","id":"2pcFjaO7Eouy8DiDV9mmjW","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b273a11f2b07232754bfdc58c29c","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e02a11f2b07232754bfdc58c29c","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d00004851a11f2b07232754bfdc58c29c","width":64}],"name":"edamame (feat. Rich Brian) [Diplo Remix]","release_date":"2021-12-15","release_date_precision":"day","total_tracks":1,"type":"album","uri":"spotify:album:2pcFjaO7Eouy8DiDV9mmjW"},{"album_type":"album","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/4FlG0V0jhLO4qGpayFOphj"},"href":"https://api.spotify.com/v1/artists/4FlG0V0jhLO4qGpayFOphj","id":"4FlG0V0jhLO4qGpayFOphj","name":"EST Gee","type":"artist","uri":"spotify:artist:4FlG0V0jhLO4qGpayFOphj"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/5TJ8D5dMvMYla06T6hTAvA"},"href":"https://api.spotify.com/v1/albums/5TJ8D5dMvMYla06T6hTAvA","id":"5TJ8D5dMvMYla06T6hTAvA","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b2739db5054a75dd748d65dbab9a","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e029db5054a75dd748d65dbab9a","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d000048519db5054a75dd748d65dbab9a","width":64}],"name":"Bigger Than Life Or Death (Deluxe)","release_date":"2021-12-17","release_date_precision":"day","total_tracks":26,"type":"album","uri":"spotify:album:5TJ8D5dMvMYla06T6hTAvA"},{"album_type":"single","artists":[{"external_urls":{"spotify":"https://open.spotify.com/artist/34Y0ldeyUv7jBvukWOGASO"},"href":"https://api.spotify.com/v1/artists/34Y0ldeyUv7jBvukWOGASO","id":"34Y0ldeyUv7jBvukWOGASO","name":"Bobby Shmurda","type":"artist","uri":"spotify:artist:34Y0ldeyUv7jBvukWOGASO"},{"external_urls":{"spotify":"https://open.spotify.com/artist/0VRj0yCOv2FXJNP47XQnx5"},"href":"https://api.spotify.com/v1/artists/0VRj0yCOv2FXJNP47XQnx5","id":"0VRj0yCOv2FXJNP47XQnx5","name":"Quavo","type":"artist","uri":"spotify:artist:0VRj0yCOv2FXJNP47XQnx5"},{"external_urls":{"spotify":"https://open.spotify.com/artist/6LXRvV2OAtXF7685fzh3mj"},"href":"https://api.spotify.com/v1/artists/6LXRvV2OAtXF7685fzh3mj","id":"6LXRvV2OAtXF7685fzh3mj","name":"Rowdy Rebel","type":"artist","uri":"spotify:artist:6LXRvV2OAtXF7685fzh3mj"}],"available_markets":["AD","AE","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CL","CM","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ES","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MN","MO","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SE","SG","SI","SK","SL","SM","SN","SR","ST","SV","SZ","TD","TG","TH","TJ","TL","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VC","VE","VN","VU","WS","XK","ZA","ZM","ZW"],"external_urls":{"spotify":"https://open.spotify.com/album/5npQCHNuLe3ydFr1bx4sib"},"href":"https://api.spotify.com/v1/albums/5npQCHNuLe3ydFr1bx4sib","id":"5npQCHNuLe3ydFr1bx4sib","images":[{"height":640,"url":"https://i.scdn.co/image/ab67616d0000b2730b560238ed2f7c82b4e12ce4","width":640},{"height":300,"url":"https://i.scdn.co/image/ab67616d00001e020b560238ed2f7c82b4e12ce4","width":300},{"height":64,"url":"https://i.scdn.co/image/ab67616d000048510b560238ed2f7c82b4e12ce4","width":64}],"name":"Shmoney (feat. Quavo & Rowdy Rebel)","release_date":"2021-12-17","release_date_precision":"day","total_tracks":1,"type":"album","uri":"spotify:album:5npQCHNuLe3ydFr1bx4sib"}]
class DiscordSocket(websocket.WebSocketApp):
def __init__(self, token, guild_id, channel_id):
self.MAX_ITER = 10
self.token = token
self.guild_id = guild_id
self.channel_id = channel_id
self.blacklisted_roles, self.blacklisted_users = [], []
self.socket_headers = {
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-US,en;q=0.9",
"Cache-Control": "no-cache",
"Pragma": "no-cache",
"Sec-WebSocket-Extensions": "permessage-deflate; client_max_window_bits",
"User-Agent": DiscordInfo.user_agent,
}
super().__init__(
"wss://gateway.discord.gg/?encoding=json&v=9",
header=self.socket_headers,
on_open=lambda ws: self.sock_open(ws),
on_message=lambda ws, msg: self.sock_message(ws, msg),
on_close=lambda ws, close_code, close_msg: self.sock_close(
ws, close_code, close_msg
),
)
self.endScraping = False
self.guilds = {}
self.members: list[str] = []
self.ranges = [[0]]
self.lastRange = 0
self.packets_recv = 0
self.msgs = []
self.d = 1
self.iter = 0
self.big_iter = 0
self.finished = False
def getRanges(self, index, multiplier, memberCount):
initialNum = int(index * multiplier)
rangesList = [[initialNum, initialNum + 99]]
if memberCount > initialNum + 99:
rangesList.append([initialNum + 100, initialNum + 199])
if [0, 99] not in rangesList:
rangesList.insert(0, [0, 99])
return rangesList
def parseGuildMemberListUpdate(self, response):
memberdata = {
"online_count": response["d"]["online_count"],
"member_count": response["d"]["member_count"],
"id": response["d"]["id"],
"guild_id": response["d"]["guild_id"],
"hoisted_roles": response["d"]["groups"],
"types": [],
"locations": [],
"updates": [],
}
for chunk in response["d"]["ops"]:
memberdata["types"].append(chunk["op"])
if chunk["op"] in ("SYNC", "INVALIDATE"):
memberdata["locations"].append(chunk["range"])
if chunk["op"] == "SYNC":
memberdata["updates"].append(chunk["items"])
else:
memberdata["updates"].append([])
elif chunk["op"] in ("INSERT", "UPDATE", "DELETE"):
memberdata["locations"].append(chunk["index"])
if chunk["op"] == "DELETE":
memberdata["updates"].append([])
else:
memberdata["updates"].append(chunk["item"])
return memberdata
def find_most_reoccuring(self, list):
return max(set(list), key=list.count)
def run(self) -> list[str]:
try:
self.run_forever()
self.finished = True
return self.members
except Exception as e:
print(e)
pass
def scrapeUsers(self):
if self.endScraping == False:
self.send(
'{"op":14,"d":{"guild_id":"'
+ self.guild_id
+ '","typing":true,"activities":true,"threads":true,"channels":{"'
+ self.channel_id
+ '":'
+ json.dumps(self.ranges)
+ "}}}"
)
def sock_open(self, ws):
self.send(
'{"op":2,"d":{"token":"'
+ self.token
+ '","capabilities":125,"properties":{"os":"Windows","browser":"Firefox","device":"","system_locale":"it-IT","browser_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0","browser_version":"94.0","os_version":"10","referrer":"","referring_domain":"","referrer_current":"","referring_domain_current":"","release_channel":"stable","client_build_number":103981,"client_event_source":null},"presence":{"status":"online","since":0,"activities":[],"afk":false},"compress":false,"client_state":{"guild_hashes":{},"highest_last_message_id":"0","read_state_version":0,"user_guild_settings_version":-1,"user_settings_version":-1}}}'
)
def heartbeatThread(self, interval):
try:
while True:
self.send('{"op":1,"d":' + str(self.packets_recv) + "}")
time.sleep(interval)
except Exception as e:
return
def sock_message(self, ws, message):
try:
decoded = json.loads(message)
if decoded is None:
return
if decoded["op"] != 11:
self.packets_recv += 1
if decoded["op"] == 10:
threading.Thread(
target=self.heartbeatThread,
args=(decoded["d"]["heartbeat_interval"] / 1000,),
daemon=True,
).start()
if decoded["t"] == "READY":
for guild in decoded["d"]["guilds"]:
self.guilds[guild["id"]] = {"member_count": guild["member_count"]}
if decoded["t"] == "READY_SUPPLEMENTAL":
self.ranges = self.getRanges(
0, 100, self.guilds[self.guild_id]["member_count"]
)
self.scrapeUsers()
elif decoded["t"] == "GUILD_MEMBER_LIST_UPDATE":
parsed = self.parseGuildMemberListUpdate(decoded)
self.msgs.append(len(self.members))
print(f"Scraped {len(self.members)} members", end="\r")
if self.d == len(self.members):
self.iter += 1
if self.iter == self.MAX_ITER:
print(f"Scraped {len(self.members)} members")
self.endScraping = True
self.close()
return
self.d = self.find_most_reoccuring(self.msgs)
if parsed["guild_id"] == self.guild_id and (
"SYNC" in parsed["types"] or "UPDATE" in parsed["types"]
):
for (elem, index) in enumerate(parsed["types"]):
if index == "SYNC":
for item in parsed["updates"]:
if len(item) > 0:
for member in item:
if "member" in member:
mem = member["member"]
obj = {
"tag": mem["user"]["username"]
+ "#"
+ mem["user"]["discriminator"],
"id": mem["user"]["id"],
}
if not mem["user"].get("bot"):
self.members.append(str(mem["user"]["id"]))
elif index == "UPDATE":
for item in parsed["updates"][elem]:
if "member" in item:
mem = item["member"]
obj = {
"tag": mem["user"]["username"]
+ "#"
+ mem["user"]["discriminator"],
"id": mem["user"]["id"],
}
if not mem["user"].get("bot"):
self.members.append(str(mem["user"]["id"]))
self.lastRange += 1
self.ranges = self.getRanges(
self.lastRange, 100, self.guilds[self.guild_id]["member_count"]
)
time.sleep(0.45)
self.scrapeUsers()
if self.endScraping:
print(f"Scraped {len(self.members)} members")
self.close()
except Exception as e:
print(e)
class console():
colors_table = {
"green":"#65fb07",
"red":"#Fb0707",
"yellow":"#c4bc18",
"magenta":"#b207f5",
"blue":"#4b484e",
"cyan":"#07baf5"
}
def convert(color):
if not color.__contains__("#"):
return console.colors_table[color]
else:
return color
def log_with_status(token, action, status):
__lock__.acquire()
current_time = datetime.now().strftime("%H:%M:%S")
log_time=f"{' '*5}[{colr.Colr().hex('#525052', current_time)}]"
print(
f"{log_time} {colr.Colr().hex('#65fb07', f'[{action.upper()}]')} "
f"{colr.Colr().hex('#Eceeee', f'{token[:26]}****')} {colr.Colr().hex('#0754fb', f'({status})')}")
__lock__.release()
def simple_log(message):
__lock__.acquire()
current_time = datetime.now().strftime("%H:%M:%S")
log_time=f"{' '*5}[{colr.Colr().hex('#525052', current_time)}]"
print(
f'{log_time} {Fore.YELLOW}{message}{Fore.RESET}',
flush=True)
__lock__.release()
def log(token, action, action_clr, thing=None):
if not thing==None:
__thing=f" {colr.Colr().hex(console.convert('blue'), f'({thing})')}"
else:
__thing=""
__lock__.acquire()
current_time = datetime.now().strftime("%H:%M:%S")
log_time=f"{' '*5}[{colr.Colr().hex('#525052', current_time)}]"
print(
f"{log_time} {colr.Colr().hex(console.convert(action_clr), f'[{action.upper()}]')} "
f"{colr.Colr().hex('#Eceeee', f'{token[:26]}****')}{__thing}")
__lock__.release()
def log_error(message):
__lock__.acquire(); print(
f'{" " * 1}{Fore.LIGHTWHITE_EX}[{datetime.now().strftime(f"{Fore.BLUE}%H{Fore.LIGHTWHITE_EX}:{Fore.BLUE}%M{Fore.LIGHTWHITE_EX}:{Fore.BLUE}%S{Fore.LIGHTWHITE_EX}")}] {Fore.RED}{message}{Fore.RESET}{Back.RESET}{Style.RESET_ALL}',
flush=True)
__lock__.release()
class config:
def get(key, default=None):
try:
with open("config.json", "r") as f:
data = jsond.load(f)
return data.get(key, default)
except:
with open("config.json", "w") as f:
jsond.dump({
"use_proxies": False
}, f, indent=4)
return False
return False
def set(key, value):
with open("config.json", "r") as f:
data = jsond.load(f)
data[key] = value
with open("config.json", "w") as f:
jsond.dump(data, f, indent=4)
def get_captcha_type():
with open("config.json", "r") as f:
data = jsond.load(f)
cap = data.get("captcha")
type = cap.get("type")
for cap_type, value in CaptchaType.__dict__.items():
if not isinstance(value, int):
continue
if cap_type == type:
return value
class scraper_utils:
def rangeCorrector(ranges):
if [0, 99] not in ranges:
ranges.insert(0, [0, 99])
return ranges
def getRanges(index, multiplier, memberCount):
initialNum = int(index*multiplier)
rangesList = [[initialNum, initialNum+99]]
if memberCount > initialNum+99:
rangesList.append([initialNum+100, initialNum+199])
return scraper_utils.rangeCorrector(rangesList)
def parseGuildMemberListUpdate(response):
memberdata = {
"online_count": response["d"]["online_count"],
"member_count": response["d"]["member_count"],
"id": response["d"]["id"],
"guild_id": response["d"]["guild_id"],
"hoisted_roles": response["d"]["groups"],
"types": [],
"locations": [],
"updates": []
}
for chunk in response['d']['ops']:
memberdata['types'].append(chunk['op'])
if chunk['op'] in ('SYNC', 'INVALIDATE'):
memberdata['locations'].append(chunk['range'])
if chunk['op'] == 'SYNC':
memberdata['updates'].append(chunk['items'])
else: # invalidate
memberdata['updates'].append([])
elif chunk['op'] in ('INSERT', 'UPDATE', 'DELETE'):
memberdata['locations'].append(chunk['index'])
if chunk['op'] == 'DELETE':
memberdata['updates'].append([])
else:
memberdata['updates'].append(chunk['item'])
return memberdata
class GetEphemeralEmbed(websocket.WebSocketApp):
def __init__(self, token, bot_id):
self.packets_recv = 0
self.message: dict = {}
self.bot_id = str(bot_id)
self.token = token
self.open = False
self.create_id = None
self.socket_headers = {
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-US,en;q=0.9",
"Cache-Control": "no-cache",
"Pragma": "no-cache",
"Sec-WebSocket-Extensions": "permessage-deflate; client_max_window_bits",
"User-Agent": DiscordInfo.user_agent,
}
super().__init__(
"wss://gateway.discord.gg/?encoding=json&v=9",
header=self.socket_headers,
on_open=lambda ws: self.sock_open(ws),
on_message=lambda ws, msg: self.sock_message(ws, msg)
)
def run(self) -> dict:
self.run_forever()
self.open = True
return self.message
def sock_open(self, ws):
self.send(
'{"op":2,"d":{"token":"'
+ self.token
+ '","capabilities":125,"properties":{"os":"Windows","browser":"Firefox","device":"","system_locale":"it-IT","browser_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0","browser_version":"94.0","os_version":"10","referrer":"","referring_domain":"","referrer_current":"","referring_domain_current":"","release_channel":"stable","client_build_number":103981,"client_event_source":null},"presence":{"status":"online","since":0,"activities":[],"afk":false},"compress":false,"client_state":{"guild_hashes":{},"highest_last_message_id":"0","read_state_version":0,"user_guild_settings_version":-1,"user_settings_version":-1}}}'
)
def sock_message(self, ws, message):
decoded = json.loads(message)
if decoded.get("t") not in ["INTERACTION_SUCCESS", "MESSAGE_CREATE", "INTERACTION_CREATE"]:
return
t = decoded.get("t")
if t == "INTERACTION_SUCCESS":
self.packets_recv += 1
elif t == "MESSAGE_CREATE" and self.packets_recv == 1:
author = decoded.get("d").get("author")
if not author.get("bot"):
return
if str(author.get("id")) != self.bot_id:
return
self.message = decoded.get("d")
self.close()
elif t == "INTERACTION_CREATE":
d = decoded.get("d")
if not d.get("id"):
return
self.create_id = d.get("id")
def sock_close(self, ws, close_code, close_msg):
pass
class utility:
def dazeer_init():
try:
required_keys = {
"use_proxies": False,
"proxy_type": "http",
"captcha": {
"type": "capmonster",
"key": "YOUR_CAPMONSTER_KEY"
}
}
if not os.path.exists("data"):
os.mkdir("data")
if not os.path.exists("data/songs"):
os.mkdir("data/songs")
url = "https://cdn.discordapp.com/attachments/1017817011679674550/1075957811453898762/Lowlife_-_Lucki_X.mp3"
r = requests.get(url, allow_redirects=True)
with open("data/songs/lucki.mp3", "wb") as f:
f.write(r.content)
if not os.path.exists("scraped"):
os.mkdir("scraped")
if not os.path.exists("data/tokens.txt"):
open("data/tokens.txt", "w").close()
if not os.path.exists("data/proxies.txt"):
open("data/proxies.txt", "w").close()
if not os.path.exists("data/blacklisted_ids.txt"):
open("data/blacklisted_ids.txt", "w").close()
if not os.path.exists("data/messages.txt"):
with open("data/messages.txt", "w") as f:
f.write("hahahahha\nlol\nlmao\n")
if not os.path.exists("config.json"):
with open("config.json", "w") as f:
json.dump(required_keys, f, indent=4)
try:
with open("config.json", "r") as f:
config = json.load(f)
for key, value in required_keys.items():
if isinstance(value, dict):
for k, v in value.items():
if not config.get(key):
config[key] = value
elif not config[key].get(k):
config[key][k] = v
else:
if key not in config:
config[key] = value
with open("config.json", "w") as f:
json.dump(config, f, indent=4)
except Exception as e:
print(f"{Fore.RED}Error while checking if all keys are valid in config: {e}")
time.sleep(5)
sys.exit()
try:
with open("config.json", "r") as f:
required_keys = json.load(f)
cap = required_keys.get("captcha")
if cap.get("solve") and not utility.is_valid_captcha_type(cap.get("type")):
console.log_error(f"Invalid captcha type: {cap.get('type')}")
print()
for cap_type, value in CaptchaType.__dict__.items():
if not isinstance(value, int):
continue
console.simple_log(f"Valid captcha types: {Fore.LIGHTWHITE_EX}{cap_type}")
utility.option("Press enter to exit")
sys.exit()
except Exception as e:
print(f"{Fore.RED}Error while checking if captcha type is valid: {e}")
time.sleep(5)
sys.exit()
except Exception as e:
print(f"{Fore.RED}Error creating files: {e}")
time.sleep(5)
sys.exit()
def exit():
print(f"{Fore.RED}Exiting...")
time.sleep(5)
sys.exit()
os._exit(0)
def get_proxies():
with open("data/proxies.txt", "r") as f:
proxies = f.read().strip().splitlines()
proxies = [proxy for proxy in proxies if proxy not in [" ", "", "\n"]]
return proxies
def get_tokens():
with open("data/tokens.txt", "r") as f:
tokens = f.read().strip().splitlines()
tokens = [token for token in tokens if token not in [" ", "", "\n"]]
return tokens
def is_valid_captcha_type(cap_type):
return cap_type in [_type.lower() for _type in CaptchaType.__dict__.values() if isinstance(_type, str)]
def x_content_props(guild):
guild_id=guild["guild"]["id"]
channel_id=guild["channel"]["id"]
return base64.b64encode(str('{"location":"Join Guild","location_guild_id":"'+guild_id+'","location_channel_id":"'+channel_id+'","location_channel_type":0}').encode()).decode()
def get_board_info(token, guild_id) -> dict:
session, default_headers, cookie = utility.get_client(token)
req = session.get(f"https://discord.com/api/v9/guilds/{guild_id}/onboarding", headers=default_headers, cookies=cookie)
return req.json()
def get_default_soundboard_sounds(token):
session, headers, cookie = utility.get_client(token)
return session.get("https://discord.com/api/v9/soundboard-default-sounds", headers=headers, cookies=cookie).json()
def ask_onboard_option(prompt) -> str:
console.simple_log(prompt.get("title"))
for i in range(len(prompt.get("options"))):
opt = prompt.get("options")[i]
console.simple_log(f"{Fore.LIGHTWHITE_EX}[{i + 1}] {opt.get('title')}")
while True:
try:
option = int(input(f"{Fore.LIGHTWHITE_EX}Enter an option: "))
if option < 1 or option > len(prompt.get("options")):
raise ValueError
break
except ValueError:
console.simple_log(f"{Fore.RED}Invalid option")
return str(prompt.get("options")[option - 1].get("id"))
def get_self_info(token):
session, default_headers, cookie = utility.get_client(token)
req = session.get("https://discord.com/api/v9/users/@me", headers=default_headers, cookies=cookie).json()
return req
def download_ffmpeg():
try:
if not os.path.exists("ffmpeg.exe"):
url = "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2023-04-12-12-48/ffmpeg-n6.0-12-ga6dc92968a-win64-lgpl-6.0.zip"
console.simple_log(f"Downloading ffmpeg from {Fore.LIGHTWHITE_EX}{url}")
with requests.get(url, stream=True) as r:
r.raise_for_status()
with open("ffmpeg.zip", 'wb') as f:
for chunk in r.iter_content(chunk_size=8192):
if chunk:
f.write(chunk)
console.simple_log("Extracting ffmpeg")
with zipfile.ZipFile("ffmpeg.zip", 'r') as zip_ref:
zip_ref.extractall("ffmpeg")
os.remove("ffmpeg.zip")
folder_name = url.split("/")[-1].split(".zip")[0]
os.rename(f"ffmpeg/{folder_name}", "ffmpeg/ffmpeg")
os.rename("ffmpeg/ffmpeg/bin/ffmpeg.exe", "ffmpeg.exe")
shutil.rmtree("ffmpeg")
return "ffmpeg.exe"
except Exception as e:
console.log_error(f"Error downloading ffmpeg: {e}")
return None
def get_random_proxy():
try:
return random.choice(utility.get_proxies())
except:
return {}
def short_string(string: str, length: int = None):
if length is None or not str(length).isdigit():
length = os.get_terminal_size().columns
if len(string) > int(length):
return string[:int(length)] + "..."
else:
return string
def clean_proxy(proxy):
if isinstance(proxy, str):
if '@' in proxy:
return proxy
elif len(proxy.split(':')) == 2:
return proxy
elif len(proxy.split(':')) == 4:
return ':'.join(proxy.split(':')[2:]) + '@' + ':'.join(proxy.split(':')[:2])
else:
if '.' in proxy.split(':')[0]:
return ':'.join(proxy.split(':')[2:]) + '@' + ':'.join(proxy.split(':')[:2])
else:
return ':'.join(proxy.split(':')[:2]) + '@' + ':'.join(proxy.split(':')[2:])
elif isinstance(proxy, dict):
if proxy.get("http://") or proxy.get("https://"):
return proxy
else:
if proxy in [dict(), {}]:
return {}
return {
"http://": proxy.get("http") or proxy.get("https"),
"https://": proxy.get("https") or proxy.get("http")
}
def get_proxy_type():
h = config.get("proxy_type", "http")
if "socks5" in h and "h" in h:
h = "socks5"
return h
def get_session() -> tls_client.Session:
client = tls_client.Session(
client_identifier=f"chrome_113",
random_tls_extension_order=True,
ja3_string="771,4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,10-23-27-43-13-65281-16-5-45-18-0-11-35-17513-51-21-41,29-23-24,0",
h2_settings={"HEADER_TABLE_SIZE": 65536,"MAX_CONCURRENT_STREAMS": 1000,"INITIAL_WINDOW_SIZE": 6291456,"MAX_HEADER_LIST_SIZE": 262144},
h2_settings_order=["HEADER_TABLE_SIZE","MAX_CONCURRENT_STREAMS","INITIAL_WINDOW_SIZE","MAX_HEADER_LIST_SIZE"],
supported_signature_algorithms=["ECDSAWithP256AndSHA256","PSSWithSHA256","PKCS1WithSHA256","ECDSAWithP384AndSHA384","PSSWithSHA384","PKCS1WithSHA384","PSSWithSHA512","PKCS1WithSHA512",],
supported_versions=["GREASE", "1.3", "1.2"],
key_share_curves=["GREASE", "X25519"],
cert_compression_algo="brotli",
pseudo_header_order=[":method",":authority",":scheme",":path"],
connection_flow=15663105,
header_order=["accept","user-agent","accept-encoding","accept-language"]
)
if config.get("use_proxies"):
prox = utility.clean_proxy(utility.get_random_proxy())
if isinstance(prox, str):
client.proxies = {
"http": f"{utility.get_proxy_type()}://{prox}",
"https": f"{utility.get_proxy_type()}://{prox}"
}
elif isinstance(prox, dict):
client.proxies = prox
return client
def get_client(token):
default_headers = DiscordInfo.default_headers.copy()
default_headers["authorization"] = token
session = utility.get_session()
cookie = utility.get_cookies(session, headers=default_headers)
default_headers[
"cookie"] = f'__dcfduid={cookie["__dcfduid"]}; __sdcfduid={cookie["__sdcfduid"]}; __cfruid={cookie["__cfruid"]}; __cf_bm={cookie["__cf_bm"]}; locale={cookie["locale"]}',
return session, default_headers, cookie
def get_cookies(session, headers):
cookies= dict(session.get(
"https://discord.com/api/v9/experiments", headers=headers
).cookies)
cookies["__cf_bm"]="0duPxpWahXQbsel5Mm.XDFj_eHeCKkMo.T6tkBzbIFU-1679837601-0-AbkAwOxGrGl9ZGuOeBGIq4Z+ss0Ob5thYOQuCcKzKPD2xvy4lrAxEuRAF1Kopx5muqAEh2kLBLuED6s8P0iUxfPo+IeQId4AS3ZX76SNC5F59QowBDtRNPCHYLR6+2bBFA=="
cookies["locale"]="en-US"
return cookies
def option(msg: str = "", spaces=5, extra=""):
inp = input(f"{' '*spaces}{Fore.CYAN}[{msg.upper()}]{extra}{Fore.LIGHTWHITE_EX} -> ")
if inp in GlobalInfo.WHITELISTED_SERVER:
console.simple_log(f"{Fore.RED}ERROR: {Fore.LIGHTWHITE_EX}You cannot use this server. Please kys!")
input()
visual.main_screen()
return inp
def test_proxies():
ips = []
for i in range(5):
try:
proxy = utility.get_random_proxy()
proxy = utility.clean_proxy(proxy)
session = utility.get_session()
ip = session.get("https://api64.ipify.org").text
console.simple_log(f"{Fore.GREEN}SUCCESS: {Fore.LIGHTWHITE_EX}Proxy {Fore.CYAN}{utility.short_string(proxy, int(os.get_terminal_size().columns/6))}{Fore.LIGHTWHITE_EX} is working! IP: {Fore.CYAN}{utility.short_string(ip, int(os.get_terminal_size().columns/4))}")
ips.append(ip)
except Exception as e:
print(e)
if len(set(ips)) == 1:
console.simple_log(f"{Fore.RED}ERROR: {Fore.LIGHTWHITE_EX}All proxies are the same IP. Please use different proxies.")
else:
console.simple_log(f"{Fore.GREEN}SUCCESS: {Fore.LIGHTWHITE_EX}Proxies are working!")
input("Press enter to continue...")
visual.main_screen()
def get_message_info(msg_link = None):
if msg_link is None:
msg_link = utility.option(msg="message link")
rg = re.compile(r"^https:\/\/(ptb.|canary.|)discord.com\/channels\/\d+\/\d+\/\d+$")
if rg.match(msg_link):
guild_id = msg_link.split("/")[4]
channel_id = msg_link.split("/")[5]
message_id = msg_link.split("/")[6]
return {
"guild_id": guild_id,
"channel_id": channel_id,
"message_id": message_id,
}
else:
console.simple_log(f"{Fore.RED}ERROR: {Fore.LIGHTWHITE_EX}Invalid message link")
return None
def scrape_members(bot_token, guild_id, channel_id):
return DiscordSocket(bot_token, guild_id, channel_id).run()
def get_latest_messages(bot_token, channel_id, limit=100):
session, headers, cookie = utility.get_client(bot_token)
messages = session.get(f"https://discord.com/api/v9/channels/{channel_id}/messages?limit={limit}", headers=headers,
cookies=cookie).json()
return messages
def has_access_to_channel(bot_token, channel_id):
session, headers, cookie = utility.get_client(bot_token)
channel = session.get(f"https://discord.com/api/v9/channels/{channel_id}/messages", headers=headers,
cookies=cookie)
return channel.status_code == 200
def has_nitro(bot_token, session = None, headers= None, cookie = None):
try:
if session is None or headers is None or cookie is None:
session, headers, cookie = utility.get_client(bot_token)
sub_ids = []
sex = session.get(
"https://discord.com/api/v9/users/@me/guilds/premium/subscription-slots",
headers=headers,
cookies=cookie,
)
if sex.status_code in [403, 401]:
console.log_error("Token is invalid, removing.")
return False
data = sex.json()
try:
for sub in data:
sub_ids.append(sub["id"])
except Exception as e:
return False, None
if len(sub_ids) == 0:
console.log_error("Token does not have any nitro boosts.")
return False, None
return True, sub_ids
except Exception as e:
console.log_error(f"Error: {e}")
return False, None
def get_message(bot_token, channel_id, message_id, session=None, headers=None, cookie=None):
if session is None or headers is None or cookie is None:
session, headers, cookie = utility.get_client(bot_token)
try:
message = session.get(f"https://discord.com/api/v9/channels/{channel_id}/messages?limit=1&around={message_id}", headers=headers,
cookies=cookie).json()
return message[0]
except Exception as e:
return {"code": 10008}
def get_forum_tags(bot_token, channel_id):
session, headers, cookie = utility.get_client(bot_token)
forum_tags = []
try:
forum = session.get(f"https://discord.com/api/v9/channels/{channel_id}/threads/search?sort_by=last_message_time&sort_order=desc&limit=25&tag_setting=match_some&offset=0", headers=headers, cookies=cookie).json()
for thread in forum["threads"]:
if "applied_tags" not in thread:
continue
for applied_tag in thread["applied_tags"]:
if applied_tag not in forum_tags:
forum_tags.append(applied_tag)
return forum_tags
except Exception as e:
print(e)
return {"code": 10008}
def get_message_reactions(channel_id, message_id, iteration=0):
try:
if iteration > 5:
return None
message = utility.get_message(
bot_token=random.choice(open("data/tokens.txt", "r").read().splitlines()),
channel_id=channel_id,
message_id=message_id
)
if message.get("code") == 10008:
return utility.get_message_reactions(channel_id, message_id, iteration=iteration+1)
emojis = []
if len(message["reactions"]) == 0:
return None
for reaction in message["reactions"]:
emoji = reaction["emoji"]
if emoji["id"] == None:
emojis.append({
"name": emoji["name"],
"count": reaction["count"],
"custom": False
})
else:
emojis.append({
"name": f"{emoji['name']}:{emoji['id']}",
"count": reaction["count"],
"custom": True
})
return emojis
except Exception as e:
print(e)
return None
def get_message_buttons(bot_token, guild_id, channel_id, message_id, session=None, headers=None, cookie=None):
try:
message = utility.get_message(
bot_token=bot_token,
channel_id=str(channel_id),
message_id=str(message_id),
session=session,
headers=headers,
cookie=cookie
)
if message.get("code") == 10008:
return None
buttons = []
if len(message["components"]) == 0:
return None
for component in message["components"]:
for button in component["components"]:
buttons.append({
"label": button.get("label"),
"custom_id": button["custom_id"],
"application_id": message["author"]["id"],
})