-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
H2H stats Scheduled Games #1
Comments
Hello! 👍 Thank you very much for your interest in my project. I added to the repo a new little script (h2h.py) that scrapes h2h matches info like you wanted. The script can scrape as many last matches as you want.
Function takes 2 arguments:
And here is the part of code that clicks "Show more matches" four times. Two times for home and two times for away table.
To every key part of code I attached my comments. If you have more questions, please feel free to ask me. 😃 If you have some more ideas how to do this you can fork my repo and do a pull request. 😃 Kind regards |
Hey, I didn't know that the matches are stil in the source code even if "Show more matches" is not clicked.
I got the following data from your match:
I will try to export these into an excel file. If I found a way I can do a fork :) Thanks ! |
Hey, yeah, sometimes ads or cookie notifications get in front of buttons. It depends on window size, sometimes it is good to maximize window or scroll page to the element you want to click. With matches being in code even when they are hidden, I think it is not a common thing. |
Hey, awesome project btw @msarnacki |
Hey, And my goal is to get the data saved like this: But I'm only getting errors x)
I dont think that my Python skills are good enough x) |
Hey it's fine, we always start somewhere :) |
I guess I'm not good enought to get this done, tried for several hours now and I'm completely done now ... |
Hey 👍
Your scraper looks very interesting so far.
I tested a bit around but couldn't achieve the results I wanted.
So my goal was to get the data from Upcoming Matches.
It has to colelct the last 15 Matches every Team has played and the last Matches against each other.
This data is found under the tab H2H.
The programm has to click four times on the "Show more matches" tab and scrape the Teams and results.
I acheived to click on "Schedueld" with the following code:
Would this be possible to code?
Thanks in advance,
Kind regards
Chris
The text was updated successfully, but these errors were encountered: