alan-turing-institute / AIrsenal

Machine learning Fantasy Premier League team
MIT License
289 stars 86 forks source link

captcha ? #565

Open pentatonicfunk opened 1 year ago

pentatonicfunk commented 1 year ago

got this logged

Error loging in: b'<html><head><title>premierleague.com</title><style>#cmsg{animation: A 1.5s;}@keyframes A{0%{opacity:0;}99%{opacity:0;}100%{opacity:1;}}</style></head><body style="margin:0"><p id="cmsg">Please enable JS and disable any ad blocker</p><script data-cfasync="false">var dd={\'rt\':\'c\',\'cid\':\'AHrlqAAAAAMAUJeSLyAbPe4AnoyjDA==\',\'hsh\':\'5DE3E6A7D87D0E4E8979F7A1C7BD73\',\'t\':\'fe\',\'r\':\'b\',\'s\':37449,\'e\':\'fbb847d3a4458a4d63bc2a27ee779c30d75e837988460096922fe190b5a21987\',\'host\':\'geo.captcha-delivery.com\'}</script><script data-cfasync="false" src="https://ct.captcha-delivery.com/c.js"></script></body></html>\n'
pentatonicfunk commented 1 year ago

introduce new airsenal command to check login might be nice

jack89roberts commented 1 year ago

Unfortunately I'm not sure there's much we can do about the captchas that some people are getting, but we should improve the error messages/checking like you say.

jack89roberts commented 1 year ago

I have seen this myself today 😬

Error loging in: b'<html><head><title>premierleague.com</title><style>#cmsg{animation: A 1.5s;}@keyframes A{0%{opacity:0;}99%{opacity:0;}100%{opacity:1;}}</style></head><body style="margin:0"><p id="cmsg">Please enable JS and disable any ad blocker</p><script data-cfasync="false">var dd={\'rt\':\'c\',\'cid\':\'AHrlqAAAAAMAF5V0NKCa-dEAUhD2aQ==\',\'hsh\':\'5DE3E6A7D87D0E4E8979F7A1C7BD73\',\'t\':\'fe\',\'r\':\'b\',\'s\':37449,\'e\':\'81e729cf3acb26d19b1e5dd1767b77e0e2f073aa55a72e9a0d99703121d02281\',\'host\':\'geo.captcha-delivery.com\'}</script><script data-cfasync="false" src="https://ct.captcha-delivery.com/c.js"></script></body></html>\n'

Hopefully this is just a quirk of trying to access the API after the season has finished...

jack89roberts commented 1 year ago

Relevant issue from the fpl package: https://github.com/amosbastian/fpl/issues/120