Is there any way to get text from an element on current browser in python?

Viewed 21

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.

1 Answers

I think that you may use one of two solutions:

  1. use selenium to open a browser every time, and automate the login process.
  2. 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:

Related