Dinnerbone / mcstatus

A Python class for checking the status of an enabled Minecraft server
http://dinnerbone.com/minecraft/tools/status/
1.11k stars 146 forks source link

How do I implement this in HTML #45

Closed Riprock closed 5 years ago

Riprock commented 8 years ago

IM making a website and I want to have this in but I don't know how to implement this in. Anyone know how?

njuaplusplus commented 8 years ago

You can use some python web framework such as Django or Flask to build a website and apply mcstatus to your views.

Riprock commented 8 years ago

Ninja I already have a html site setup. Do you know of a turtorial that can explain how i would insert a python element into my html site with DJango?

Riprock commented 8 years ago

I never worked with DJango before so I dont know how to put mcstatus in a website

njuaplusplus commented 8 years ago

Actually, Flask is more light-weighted. But I'm more familiar with Django. You can learn from the Django's official tutorial. After you come through the tutorial, you must be able to implement this. You just need to use mcstatus api in your django's app's views.py.

Riprock commented 8 years ago

Thank you @njuaplusplus

kevinkjt2000 commented 5 years ago

Seems that this question is resolved.