I am very sorry for the horrendously worded question as I don't know how to phrase it differently. I am currently trying to make a bot play a game like skribbl or kahoot where you join, input a name and play. However I cannot just web-scrape the data with the join link as all the 's are empty and no new player joins. So how can I make a bot that joins the game. I don't necessarily need code. But I need resources to learn, I don't know what this kind of coding would be called.
Given I could just take screenshots frequently of my screen and try to go from there but I feel like it would be better to not do that and I want to expand my knowledge.
If this is not possible in python what other languages would be preferable?
Related
I am programming a trivia by using PySimpleGUI by using checkboxes, inputs, combos and radios, for which i haven't been able to amy resource or code so I could understand how can i mark the right answer from the others.
Does any one has ever done anything similar to it that could help me understand what do I have or can do to solve my problem?
I understand that for getting the exam check at the end i have to put if/elif/else for the answers but i cannot put myself together on how ot display which one is the correct answer, but i dont understand how to put everything together and make the system record the wrong answer so it could be displayed when the user is checking the answers.
Currently I'm working on a quiz game for a project which uses the spotify API. Our approach is to get get the data from the api and use it to make multiple choice questions about one specific artist. Right now we are stuck at the part where we connected to the api and have the raw data but can't turn it into (randomly generated) questions?
How should we start or approach it? Is there a way to code that or we want to make something that is not possible?
So far I haven't had any useful solution idea or find answers, similar quiz games usually use python dictionaries for storing questions.
First of all I want to apologize if my question is too broad or generic, but it would really save me a lot of needlessly wasted time to get an answer to guide me in the right direction for the work I want to do. With that out of the way, here it goes.
I am trying to retrieve some publicly available data from a website, to create a dataset to work with for a Data Science project. My big issue is that the website does not have a friendly way to download it, and, from what I gathered, it also has no API. So, getting the data requires skills that I do not possess. I would love to learn how to scrape the website (the languages I am most comfortable with are Python and R), and it would add some value to my project if I did it, but I also am somewhat pressured by time constraints, and don't know if it is even possible to scrape the website, much less to learn how to do it in a few days.
The website is this one https://www.rnec.pt/pt_PT/pesquisa-de-estudos-clinicos. It has a search box, and the only option I configure is to click the banner that says "Pesquisa Avançada" and then mark the box that says "Menor de 18 anos". I then click the "Pesquisar" button in the lower-right, and the results that show up are the ones that I want to extract (either that or, if it's simpler, all the results, without checking the "Menor de 18 anos" box). In my computer, 2 results show up per page, and there are 38 pages total. Each result has some of it details in the page where the results appear but, to get the full data from each entry, one has to click "Detalhes" in the lower right of each result, which opens a display with all the data from that result. If possible, I would love to download all the data from that "Detalhes" page of each result (the data there alerady contains the fields that show up in the search result page).
Honestly, I am ready to waste a whole day manually transcribing all the data, but it would be much better to do it computationally, even it it takes me two or three days to learn and do it.
I think that, for someone with experience in web scraping, it is probably super simple to check if it is possible to download the data I described, and what is the best way to go about it (in general terms, I would research and learn it). But I really am lost when it comes to this, and just kindly want to ask for some help in showing me the way go about it (even if the answer is "it is too complicated/impossible, just do it manually"). I know that there are some Python packages for web scraping, like BeautifulSoup and Selenium, but I don't really know if either of them would be appropriate.
I am sorry if my request is not exactly a short and simple coding question, but I have to try to gather any help or guidance I can get. Thank you in advance to everyone who reads my question and a special thank you if you are able to give me some pointers.
So I'm new to python and just finished my first application. (Giving random chords to be played on a midi piano and increasing the score if the right notes are hit in a graphical interface, nothing too fancy but also non-trivial.) And now I'm looking for a new challenge, this time I'm going to try and create a program that monitors a poker table and collects data on all the players. Though this is completely allowed on almost all poker rooms (example of the largest one) there is obviously no set and go API available. This probably makes the extraction of relevant data the most challenging part of the entire program. In my search for more information, I came across an undergraduate thesis that goes in to writing such a program using Java (Internet Poker: Data Collection and Analysis - Haruyoshi Sakai).
In this thesis, the author speaks of 3 data collection methods:
Sniffing packets
Hand history
Scraping the screen
Like the author, I've come to the conclusion that the third option is probably the best route, but unlike him I have no knowledge of how to start this.
What I do know is the following: Any table will look like the image below. Note how text, including numbers is written in the same font on the table. Additionally, all relevant information is also supplied in the chat box situated in the lower left corner of the window.
In some regards using the chat box sounds like the best way to go, seeing as all text is predictable and in the same font. The problem I see is computational speed: It will often occur that many actions get executed in rapid succession. Any program will have to be able to keep up with this.
On the other hand, using the table as reference means that you have to deal with unpredictable bet locations.
The plan: Taking this in to a count, I'd start by getting an index of all player's names and stacks from the table view and "initialising" the table that way, and continue to use their stacks to extrapolate the betting they do.
The Method: Of course, the method is the entire reason why I made this post. It seems to me like one would need some sort of OCR to achieve all this, but seeing as everything is in a known font, there may be some significant optimisations that can be made. I would love some input on resources to learn about solutions to similar problems. Or if you've got a better idea on how to tackle this problem, I'd love to hear that too!
Please do be sure to ask any questions you may have, I will be happy to answer them in as much detail as possible.
I am trying to scrape everyone's player names from a match when I first connect to a match. I then want to pass these names to an application (I'm guessing I'll use python?) that will connect to dotabuff and scrape each players top 5 hero's played and output them. Is this a reasonable goal?
The examples I have come across seem to demonstrate how to get data after a match is over. I really just need the player names as soon as I connect to the server. Is python the best route to go for this? Any suggestions on other languages I could use?
I have good knowledge of C, C++, Java, and assembly language but am completely new to this field. Thank you in advance for any help.
I don't know about Dota2 specifics and I can't check since no one is currently playing it on my friends list so I'm shooting blanks here, but other Source games allow you to query server information, including player list.
You can read more about it here: https://developer.valvesoftware.com/wiki/Server_queries