Open liranelisha opened 6 months ago
Where do you run the scraper from? It might be related to the location of the servers. I'm running in GitHub actions and never got a 2fa request
i run it locally from a machine in israel
Hi ,i have the same issue(running the code on raspberry pi)-any idea for a solution?
@galbarm
Happens to me to well.
What's weird is that when testing with showBrowser: true
, the login finishes successfully and no 2FA is requested.
@gbarmashiahflir yeah, that's my mitigation as well. when scrapping hapoalim i show browser. that makes sense as the headlesss browser and headed browser has different signature, making the headed browser show the 2fa once, and once solved not showing it again. however this isn't possible with headless browser. waiting to see if there could be a more reliable solution
I'm experiencing the same issue. It looks like when I'm trying a new machine/IP (changing somehow my signature), it asks for 2FA again.
i found a "kind" of workaround for my case, I use raspberry pi, usually i installed a light version of Raspbian os(OS for raspberry pi) with no desktop(only cli)-this time i installed the desktop version enter to the browser-get the SMS to enter the code, enter to the site. and then tried again the script-this time it worked..not the best-but for my case its seems to work 🤣
starting last week, Bank HaPoalim is asking for elevated privileges via 2FA through the phone for unknown sessions, causing each run from the scraper to prompt the 2FA