axel3rd / mpg-coach-bot

MPG (Mon Petit Gazon) coach bot, to automate and optimize weekly actions
https://axel3rd.github.io/mpg-coach-bot/
MIT License
23 stars 8 forks source link

Sportsgambler new URLs and HTML content (some Crashes on parsing) #178

Closed axel3rd closed 3 years ago

axel3rd commented 3 years ago
Exception in thread "main" java.lang.NullPointerException
        at org.blondin.mpg.out.InjuredSuspendedSportsGamblerClient.getPlayers(InjuredSuspendedSportsGamblerClient.java:100)
        at org.blondin.mpg.out.AbstractInjuredSuspendedNotL2.getPlayers(AbstractInjuredSuspendedNotL2.java:96)
        at org.blondin.mpg.out.AbstractInjuredSuspendedNotL2.getPlayer(AbstractInjuredSuspendedNotL2.java:79)
        at org.blondin.mpg.out.AbstractInjuredSuspendedNotL2.getPlayer(AbstractInjuredSuspendedNotL2.java:35)
        at org.blondin.mpg.out.InjuredSuspendedWrapperClient.getPlayer(InjuredSuspendedWrapperClient.java:59)
        at org.blondin.mpg.Main.removeOutPlayers(Main.java:337)
        at org.blondin.mpg.Main.processGames(Main.java:178)
        at org.blondin.mpg.Main.processLeague(Main.java:115)
        at org.blondin.mpg.Main.process(Main.java:83)
        at org.blondin.mpg.Main.main(Main.java:68)

File: sportsgambler.ligue-1.20210223.html.zip

axel3rd commented 3 years ago

The HTML content has change, and the URLs to injuries: