r/Scriptable • u/Repulsive-Hall509 • May 08 '24
Help Automate 2FA(Two Factor Authentication)
Hi Everyone,This is my first post here in the group so bare with me.
So I’m trying to login to www.example.com which uses 2FA with sending 6 digit code to the phone as message to verify login.
Problem is even if I manually verify from scriptable it logs me out every 5mins don’t t know its a thing or cookies set to timeout.
Alternately if i do it manually in safari first then my safari saves my login and never asks me for 2fA. It opens right at the homepage.
Task:to scrape the data from website automatically after login and organize them accordingly with necessary information and create json file periodically so that my widget keeps updating
Widget: Schedules for the month
Note: i have did this in ios shortcuts but have to manually depend on the share sheet which is pain!
View all comments
Show parent comment
1
u/Repulsive-Hall509 May 20 '24
Thank you for the reply, As i have here few questions
Using scriptable only
Using ios shortcuts and scriptable
Everything is functional data is extracted and written into json file with widgets gets updated every few minutes.
Homepage—> schedules —> Access schedules Then run the shortcut using sharesheet!
Questions: i cant run javascript on homepage as this only takes the first page as safari web page input so i have to physically navigate to Access schedules and then click on it. Is there any way to run javascript without the run javascript on homepage in ios shortcut ?
Yes I believe you have this question also in mind that why this person cant navigate directly with open url 3rd link because from homepage onwards it is clicking the button would load the data for next page something like on load function.