Closed Indoors420 closed 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.
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)
You mentioned backend. Do you currently have a backend setup at all? Where is this running? On a VPS? Shared hosting? Your own computer?
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
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?