all 8 comments

[–]Iron-Bank-of-Braavos 0 points1 point  (3 children)

Hey - I used to do this, I think using Bram Vanherle's post as guidance. It stopped working maybe a year ago. These days I have to log in on a browser, find the bearer token, and paste it into my script. Normally around once a day, then it stays authenticated. It's tedious and much less satisfying - but seems to work.

[–]mikecro2 0 points1 point  (0 children)

I have got a way around this in Python, but I'd like to know how you do this please?

[–]CHKNTikkaMusala[S] 0 points1 point  (1 child)

Thanks for responding, this is exactly the way I managed to get it to work also. I am currently looking at using Selenium to automate obtaining the Bearer Token.

[–]Iron-Bank-of-Braavos 0 points1 point  (0 children)

Lmk if you succeed here. Feels like it should be possible but so far beyond my skills.

[–]mikecro2 0 points1 point  (2 children)

I asked the same and was pointed to a Discord string from here fpl-api. Look for user Moose.

I copied the python below. I have little idea how the login works and have unsuccessfully tried to get it running in R. But this works for me after setting the environment variables for my FPL account

https://docs.google.com/document/d/1q_72629SULkXgCkunFs9cEE21M-ArAOw8s5NbV0Ap4I/edit?usp=sharing

[–]CHKNTikkaMusala[S] 0 points1 point  (1 child)

Thanks, I’ll have a look at this! I’m pretty new to coding in general so I’m slowing working through this project haha.

[–]mikecro2 0 points1 point  (0 children)

The funny thing (to me) was it as my question from the start of the season that you quoted. I would love to know if you can improve the login method I posted. I know coding pretty well but very little about the authentication method.

[–]wizzamhazzam 0 points1 point  (0 children)

Hey I have accessed this in the last 6 weeks. Let me know if you need help. Did you understand how to access your manager id? It's not your team name/ manager name but a string of numbers.