Hey. My question is if it's possible to control the normal browser using Python. By normal browser I mean the standart-browser (f.e. Microsoft Edge). I know that there are library's like Selenium or Beautifulsoup that can make a browser instance... but I mean like a script that actually uses the same browser that the user does.
#๐ Is it possible to control the normal browser using Python
9 messages ยท Page 1 of 1 (latest)
@stray rune
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
If you dont understand what I mean feel free to ping me and ask
Pyautogui or similar automation libs?
You can set up beautiful soup/probably selenium to function on a "headed"? version of the browser, instead of a headless one. That would let you see what it's doing.
As for doing things automatically in your normal browser, as far as I know besides making a custom chromium extension using javascript there isn't a good way, especially if you want to do things on unfocused tabs.
As for automating things you would otherwise do manually, you can use automation tools that move your mouse/mime keyboard inputs, like pyautogui. If you are on windows you can sometimes use autohotkey + control sends to do things in unfocused windows, but the tab would still need to be focused.
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.