this is an archive of sel-requests, and this repo is years old so you probably won't have much luck.
Discord API client based on my sel-requests module, primarly focused on evading Discord's TLS fingerprint bot detection.
pip install -U git+https://github.com/h0nde/sel-requests.git
pip install -U git+https://github.com/h0nde/sel-discord.git
import seldiscord
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
with seldiscord.Session(user_agent) as dsc:
dsc.setup()
# now that TLS fingerprinting has been evaded, Discord is likely
# to present no captchas while creating an account
print(dsc.register(
username="234ixcmoas",
#email="[email protected]",
#password="hunter2",
#invite="fortnite"
))
dsc.gateway()
Only some specific API endpoints have methods of their own.
Initialize a new session/client.
Grab fingerprints and stuff.
Wrapper for .sel.request, includes all necessary Discord headers.
Attempts to create an account. If successful, the .token attribute is set, and further API requests will be authenticated.
Briefly connects to the gateway to unlock additional functionalities.
Closes the sel-requests instance.