This may or may not be the right section, please redirect me if it is not.
I’ve looked through lots of places for finding out how to make group ranking systems with python. Specifically, I’ve looked at google and found things such as Pyblox, however it has NO documentation, and I doubt it has any ranking capabilities.
Is there anything I can use to rank people from a python script, from it being as simple as a library, to me having to make HTTP requests?
If you would be willing to go over to noblox.js and JS as a whole then there are tutorials on how to make bots like that, It’s also fairly easy to understand from my point of view.
There’s examples of how to make those kinds of things with JS on the DevForum (though they more so spoonfeed than explain) however noblox is extremely simple
const noblox = require('noblox.js');
const express = require('express');
const app = express();
async function run() {
await noblox.cookieLogin('_ROBLOXSECURITY KEY');
let user = await noblox.getCurrentUser();
app.get('/',(req,res) => { // when a request is made to the index.html webpage:
let hdrs = req.headers; // you can store userid, role id etc in here assuming its a HTTP request
let roleId = Number(hdrs.roleId);
let groupId = Number(hdrs.groupId);
let userId = Number(hdrs.groupId);
noblox.setRank({ group: groupId, target: userId, rank: roleId})
.then(s => {console.log('success')})
.catch(err => throw err);
});
}
run();
Small example with node.js w/ express and noblox.js just in case you can’t find a Python version supporting ranking.
(I typed this entire thing here so something might be wrong but pretty sure there isn’t, if you wanna use JS you can always use Glitch which gives you 4k requests/hour so be careful not to exceed that unless you buy their Premium option)
Interesting thread. I just so happen to be the author of Pyblox.
I find it rather concerning that people expect things to be willingly handed to them at little to no cost, plugged in, and then used freely without any worry in the world. To me, that’s not the point of this library nor what programming actually entails. This may not be specifically you but, it builds onto the reason as to why I didn’t provide classic documentation.
Providing documentation is a lot of work. The Roblox API changes so frequently that I’d be spending more time updating the documentation that people may never look at (refer to the statement above) and frankly, I find that to be a waste of resources. The library is modeled directly after the API of which it belongs to and follows their scheme. This allows me to leverage off of their documentation without having to update it on my end.
In addition, people oftentimes put code into their projects without knowing what exactly they’re putting in. I specifically wrote this library for people to dive into its source code and explore what the library has to offer. I even wrote it into the readme.
Here’s a sample of what the inside of this particular file looks like & the format that all methods follow: