NulledAPI - Unofficial Nulled.to API
https://pypi.org/project/NulledAPI/
NulledAPI is an unofficial nulled.to API to better and more easily integrate features such as a ramped up version of nulled auth, and have access to useful functions such as searching for users, getting user info (much more functions in the works).
Some features:
- Nulled auth function returns the usergroup and other user tidbits, which you can use to bar certain ugs to access certain functions of your program
- Search user function returns dictionary of similarly named users
- Get user info gets you the user info
- More functions are on the way (depends on the time I can devote lol)
I still need to implement the web scraper part like in my Leecher Slayer program, so that likes, reps, threads, posts and such can be returned
Preview:
REQUIREMENTS:
INSTALLATION:
[hide] pip install NulledAPI [/hide]
EXAMPLE USAGE:
[spoiler]
from NulledAPI import Nulled nulled = Nulled() print(nulled.get_user_info(1234144))
OUTPUT:
{
'user_found': True,
'username': 'finndev',
'id': 1234144,
'group': 'reverser',
'shouts': 1,
'discord': None,
'error': (False, 'NO_ERROR_USER_FOUND')
}
METHODS:
- auth(auth_code: str)
[spoiler]print(nulled.auth('NULLED-5E72C-60984-4D332-5B526-X'))
{
'authenticated': True,
'user_found': True,
'username': 'M3GZ',
'id': 4103370,
'group': 'aqua',
'shouts': 348,
'discord': '_megz#1304',
'error': (False, 'NO_ERROR_USER_FOUND')
}
[/spoiler]
Now you can limit parts of your programs for different usergroups
- get_user_info(user_name_or_id, secure_hash, session_id)
[spoiler]print(nulled.get_user_info('brian','secure_hash','session_id'))
OR
print(nulled.get_user_info(1468487))
{
'user_found': True,
'username': 'Brian',
'id': 1468487,
'group': 'disinfector',
'shouts': 2381,
'discord': None,
'error': (False, 'NO_ERROR_USER_FOUND')
}
[/spoiler]
Go crazy with the information, you need just one line of code to get all of it
- search_user(username: str, secure_hash: str, session_id: str)
[spoiler]
Returns dictionary of all similarly named users found (the dict keys are the UIDs)print(nulled.search_user('m3gz','secure_hash','session_id'))
{
'4103370': {
'name': 'M3GZ',
'group': 'Aqua',
'profile_pic': 'https://static.nulle...?_r=1598880866'
},
'2515890': {
'name': 'm3gzz',
'group': 'Members',
'profile_pic': 'https://static.nulle...ault_large.png'
}
}
[/spoiler]
No need to type @username in the shoutbox to search for users again
- More functions WIP
Notes
To get the session_id and secure_hash:
[spoiler]
- Open any nto page on your browser being logged in
- Then press Ctrl + U
- In the source page, search for the term secure_hash
- There'll be a line like ipb.vars['secure_hash'] = 'xyz';
- xyz is the secure_hash, use that in the methods
- The line below the secure_hash line will contain the session_id
- Note: session_id changes every time you use your Auth key to authenticate, so you'll need to input the latest one while calling the method.
[/spoiler]
Documentation can also be viewed using Visual Studio Code or other editors/IDEs
Important: Cloudflare should not be an issue now
Hope you guys like it