Skip to content
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

Can't parse French league due to webpage in French #68

Open
KnightRider37 opened this issue Feb 23, 2024 · 7 comments
Open

Can't parse French league due to webpage in French #68

KnightRider37 opened this issue Feb 23, 2024 · 7 comments

Comments

@KnightRider37
Copy link

When trying to predict all matches from the French league, it can't read the date, due to the fact that footy stats is in French. Because of this the date code doesn't match.
How can this be fixed?
Thanks

@kochlisGit
Copy link
Owner

hmm, that's weird. Can you send me a screenshot of footystats in french? i didn't know they got French language mode

@KnightRider37
Copy link
Author

Screenshot 2024-02-23 at 16 15 24 This is the way footystats comes up for French league and it doesn't read the date. Screenshot 2024-02-23 at 16 17 20 this is the error I get

@kochlisGit
Copy link
Owner

kochlisGit commented Feb 23, 2024

can you also provide me the url of footystats that it tries to parse? e.g. For Ligue 1, it should be https://footystats.org/france/ligue-1/fixtures

@KnightRider37
Copy link
Author

KnightRider37 commented Feb 23, 2024

https://footystats.org/fr/france/ligue-1/fixtures - it takes me to this one
Don't know why there is the "fr". for other leagues I don't have this issue.

@kochlisGit
Copy link
Owner

image

I see. The problem can be seen in the image. It changes the class name, as well as the page format. The english version is different! I updated the file "fixtures/footystats/scraper.py" to add US language as the preferred language. It should be ok now.

@KnightRider37
Copy link
Author

Unfortunately it didn't solve the issue. tried with safari and chrome. still the same issue. I'll keep looking.

@mnomoko
Copy link

mnomoko commented Apr 14, 2024

You have to replace fixtures_url within "database/entities/leagues/france.py".
replace this: "fixtures_url='https://footystats.org/fr/france/ligue-1/fixtures'" with "fixtures_url='https://footystats.org/france/ligue-1/fixtures'".
Then delete "database/storage/leagues/index.pkl" and recreate all your leagues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants