msemple1111 / kahoot-hack-private

1 stars 1 forks source link

Q: How do I use this on the back-end of a website? #1

Closed Indoors420 closed 6 years ago

Indoors420 commented 6 years ago

I have no experience with python at all but I do have a webpage ready with some basic javascript skills, how should I go about using this on the back-end of a web site?

Egoscio-zz commented 6 years ago

Your goal is rather ambiguous. I'm going to assume you mean you'd like to integrate this into your backend so that you can make API routes that will be called by the frontend to execute predetermined tasks interfacing with this Kahoot library. In that case, ideally, you would write your backend in Django or Flask (two well known Python web frameworks) and import the library files in the same place you're defining your API routes. There, you can import and call the raw library functions for each endpoint. This, however, would require a decent understanding of Python and Django or Flask. If you wish to continue with only JavaScript knowledge, you can learn how to spin up a backend API in Node.JS with the Express framework. Then, for each endpoint, you can spawn a process that invokes the predefined Python scripts. This method won't give you as much fine-grain control as the latter, but it works. Of course, there are other possibly better approaches to this. Perhaps if you give us some more information on your setup we can provide better suggestions.

Indoors420 commented 6 years ago

My only goal for the site is to basically create a flood bot that allows someone to spam up to 100 bots into a kahoot game. I have a webpage that has 3 forms, lobby number, bot name, and bot amount (up to 100). I also want the bots to answer the questions while in the quiz (they don't need to be right though)

Egoscio-zz commented 6 years ago

You mentioned backend. Do you currently have a backend setup at all? Where is this running? On a VPS? Shared hosting? Your own computer?

Indoors420 commented 6 years ago

I do not, but when I do it will probably be on an Ubuntu server VM on my pc until I find a better place for it