the thing is I can login to the site only from one device, which is my browser so I can't use selenium, so I have to use something else which opens my browser and copy the text from an element using python.
Asked
Active
Viewed 107 times
0
-
you can use selenium, you just have to give it the original browser credentials. – Ahmed AEK Sep 24 '22 at 12:06
-
something like `pyautogui` which just automates the keypresses and detect things on screen is viable for impossible to automate programs, but selenium is the correct library to use here. – Ahmed AEK Sep 24 '22 at 12:07
-
the question needs sufficient code for a minimal reproducible example: https://stackoverflow.com/help/minimal-reproducible-example – D.L Sep 24 '22 at 13:33
-
see the thing is i cant repeatedly login and log out and I want to completely automate it the site has captcha the site is [Site](https://digitalclass.allenoverseas.com/) – Dashdaber 154 Sep 25 '22 at 18:10
1 Answers
0
I think that you may use one of two solutions:
- use selenium to open a browser every time, and automate the login process.
- If the site allows you to access without logging in when you access with your default browser(such as Stack Overflow for example - you don't need to login every time you open the website from your device), you can use the same browser profile and it should do the same job - login automatically to that website.
references:

Ofir Siboni
- 81
- 1
- 5