Closed lurue101 closed 1 year ago
Hello again, I found a fix. So the problem is that in the Understat.py file in the functionscrape_matches the "links" variable contains a None, which then causes the error. So I just added a check for that. I'm not sure if you would want to have a deeper look at why there is a None, but if not I'm happy to create a pull request and fix it
if link is None:
continue
match = self.scrape_match(link)
matches = matches.append(match, ignore_index=True)
Hey @tacticfox! Thanks for reaching out. I can add that fix, but you also need to change your league string. It can't have the underscore, it should just be "La Liga".
If you never need to see what the league strings are, go to shared_functions.py and there's a dict at the top with all of the available leagues for each source.
Let me know if it works with "La Liga".
Hey, using "La Liga" doesn't change anything for me. It's the same problem. And I'm pretty sure it works with the underscore, I have used that all the time
Huh, that's 2 issues then. OK, thanks for the heads up, this is on my to-do list now!
v2.3.0 should fix the selenium error. Let me know if it works for you!
Hello Owen, thanks a lot for your work. Your package helped me a lot with a private project. So far, I have only scraped data from last season or older. I tried to scrape the current season, but get the same error and can't find a solution. This is the code I run and below is the error I get
Thanks in advance best regards Lukas