summer / mojang Goto Github PK
View Code? Open in Web Editor NEWA wrapper for the Mojang API and Minecraft website
License: MIT License
A wrapper for the Mojang API and Minecraft website
License: MIT License
When trying to login with a bearer token, It throws a 404 not found error.
This is my code, i am trying to use 2 accounts:
try:
client1 = Client("EMAIL", "PASS")
except errors.LoginFailure:
QtWidgets.QMessageBox.about(self, "Error", "Invalid main account")
return
try:
client2 = Client(bearer_token = "TOKEN")
except errors.LoginFailure:
QtWidgets.QMessageBox.about(self, "Error", "Invalid second account")
return
It should be a valid token. Its 435 characters long and contains a dot.
The get_drop_timestamp() function always returns a ValueError, as it attempts to convert the username to a UUID, however since drop timestamps only work on names that aren't currently set to any profile, this makes it impossible to work.
Example:
drop_timestamp = MojangAPI.get_drop_timestamp(mazurr)
print(drop_timestamp)
Returns:
ValueError: Username is invalid. Failed to convert username to UUID
Is there a way to input login: (Email, Password)
and getting it to print the bearer token?
你好,可以咨询下git空间吗,summer可以出让给我吗?微信或者QQ联系
Hello, can you inquire about git space? Can Summer sell it to me? WeChat or QQ contact
kWAY#1701
name_data_dict["name"] = data["name"]
TypeError: string indices must be integers
getting this error anytime i call the MojangAPI.get_name_history(uuid)
When you query a profile:
profile = MojangAPI.get_profile("20e21989-5521-49df-9750-a4ef8bd5441b")
, expected output is None
if the profile doesn't exist or UserProfile
if it does, however, if you put a valid UUID, but one that isn't a player, the method throws json.decoder.JSONDecodeError
profile = MojangAPI.get_profile("20e21989-5521-49df-9750-a4ef8bd5441a") # This will error out!
I have inputted a username but this error still occurs. How can I fix this?
It's me dancers, you should add my new account. (I got terminated 😢)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.