0

I was wondering if there was a way to be able to use the email password to get emails from imap.gmail.com instead of making app passwords. If not is there a way to automate the process and request the user to accept terms and have the app password given rather than having users create one themselves?

  • what do u mean without app passwords? – Amin S Jan 29 '23 at 00:05
  • Google implemented a security access code called an app password in order for applications to sign into accounts and access data but I wanted to know if there was a way to automate that for the end user rather than having it be a manually done process – user19926715 Jan 29 '23 at 00:08
  • oh i think this was possible before the last update. you could have less secure acount by giving a permission and could easily use it in python. now i think you need that app password. – Amin S Jan 29 '23 at 00:10
  • I have seen some apps that show a request access browser window and then the user allows. Can Python do that and have one returned to it automatically? – user19926715 Jan 29 '23 at 00:12
  • there are two ways actually come in my mind. first, scraping ( like selenium) for automation browser based things. second, using your own cookie and signatures from your already logged-in adding to your requests and sending. both would work for simple tasks. – Amin S Jan 29 '23 at 00:20
  • those apps you have seen probably using official APIs from google i think. – Amin S Jan 29 '23 at 00:22
  • How would you appoach that @AminS – user19926715 Jan 29 '23 at 00:24
  • I haven't used selenium or worked with cookies in python – user19926715 Jan 29 '23 at 00:24
  • search for Selenium, Beautifulsoup, Requests modules. these are the things you need most. e.x search for automate linkedin login using selenium. – Amin S Jan 29 '23 at 00:27

0 Answers0