Python Forum
How to get a URL from python 'webbrowser'?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get a URL from python 'webbrowser'?
#1
I'm using 'webbrowser' for opening multiple tabs in Chrome/Firefox.
For example:
webbrowser.get("open -a /Applications/Firefox.app %s").open('http://google.com',new=1)
But the problem is, in somecases, the url gets changed(may be redirected to captcha provider), then I have to stop opening new tabs and terminate. Is there any way to read the URL after opening it using 'webbrowser'?

Here, 'Selenium' doesn't help me, because I need some extensions to be installed in the browser and I have to provide my login details and configure some settings in that extensions/plugins. So, I don't think selenium webdriver will be useful here.

Can you suggest any solution for this?

Thanks a lot in advance!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Webbrowser.open() causes errors ChrisOfBristol 1 885 Apr-09-2023, 08:34 PM
Last Post: deanhystad
Question How to get html information from a tab of my default browser opened with webbrowser? noahverner1995 2 4,513 Jan-14-2022, 10:02 AM
Last Post: noahverner1995
  Webbrowser jbrick97 3 60,557 Sep-27-2020, 03:58 AM
Last Post: ndc85430
  Making WebBrowser In PySide2 Harshil 0 1,906 Sep-16-2020, 05:03 PM
Last Post: Harshil
  webbrowser and menu not working. sik 1 1,841 Oct-31-2019, 03:39 AM
Last Post: newbieAuggie2019
  Web scraping: webbrowser issue Truman 10 7,086 Jul-11-2018, 11:57 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020