Logging into a website using cookie information

Hi everyone

I was listening to an episode of the Automators podcast recently and one of the presenters mentioned about a shortcut he created in order to check if the local community pool was busy or not.

To do this, he would first log into the website and save the cookie information. He would then create a shortcut that would login (using the cookie information) and download the content needed off the website to check how many people had gone to the pool that day.

I posted a similar question recently regarding logging into a website to get information but my idea was to fill out a form to do so.

How would I go about using cookies to do this as filling out the form isn’t quite working.

Once you have your cookie (is it a session cookie you are getting back or something more persistent?, you could try passing it in as a request header.


The underlying issue for you is there is no one size fits all solution. There is a reason API are used for automatic interactions and browsers are used for human interactions.

To be honest I’m out of my depth here. I volunteer for a youth football team and I was trying to automate sending fixtures out to parents.

The website that hosts the fixtures doesn’t seem to like me filling in the form and sending it. I played about deleting cookies which seems to affect the kink working.

Here’s the initial site: Full-Time League Administration | The Football Association

If the user clicks login, he gets directed to this link: https://fulltime-admin.thefa.com/b2c/signInLanding.html

I then need to click ‘login by email’ which takes you to this link: https://b2cthefa.b2clogin.com/b2cthefa.onmicrosoft.com/B2C_1A_signup_signinACTDyn/oauth2/v2.0/authorize?response_type=code&response_mode=query&redirect_uri=https%3A%2F%2Ffulltime-admin.thefa.com%2Fb2c%2FauthSignUpSignIn.html&client_id=16eece4b-82e1-4ae2-960d-45884ab3a895&scope=https%3A%2F%2Fb2cthefa.onmicrosoft.com%2FActScopeApp%2FWRITE+https%3A%2F%2Fb2cthefa.onmicrosoft.com%2FActScopeApp%2FREAD+https%3A%2F%2Fb2cthefa.onmicrosoft.com%2FActScopeApp%2Fuser_impersonation&prompt=select_account&state=ec8dc50b-71e4-4ea6-8fcb-dc5c0200ce6f&nonce=1bf573b0-d183-4fbd-ad75-3745adbbc5a2&FAAppToken=FTA

If I then login using my login details, it logs into the website. If I delete the cookies then input my login details, it won’t work.

Any ideas? I’m hoping once I can get through this part the rest should be simple enough.

I can see OAuth being used for the authorisation in one of the links you shared.

Do a search on OAuth on the forum and you will see various discussions about processes for automating logins to websites using this, via Shortcuts, Scriptable, etc.

1 Like