Questions tagged [python-webbrowser]

Python module that allows the user to load web content with available browsers.

The webbrowser module provides a high-level interface to allow displaying web-based documents to users. Under most circumstances, simply calling the open() function from this module will do the right thing.

More info: https://docs.python.org/3/library/webbrowser.html

406 questions
6
votes
3 answers

Face Detection using Web(Html css) and Python

I am pretty new to web technologies. I am making a chatbot with face detection integrated although I know how to work with python and its libs with other works, i am facing issue while loading the pages Requirement: Face detection on web, for now,…
Tapan Kumar Patro
  • 767
  • 1
  • 7
  • 18
6
votes
3 answers

How to override the default browser selection in Windows 7 when opening webppages with Python

I have a program written with Python 3.7.4 on Windows that opens web pages in a browser. It displays the default browser and gives the user the chance to change which browser they want to use to open programs with. The default browser is detected…
츄 plus
  • 488
  • 1
  • 7
  • 20
6
votes
0 answers

How to use Python webbrowser.open() to open a window on Background

I have a program that runs `import webbrowser path = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" webbrowser.register('chrome', None, webbrowser.BackgroundBrowser(path)) chrome = webbrowser.get('chrome') …
Jordan A.
  • 384
  • 1
  • 4
  • 17
6
votes
1 answer

Webbrowser converts double quotes to %2522

As explained in the title, whatever I do, I can't get webbrowser to open the URL I want it to open. I tried escaping the double quotes with \ I tried using %22 in the URL instead of " No matter what, the end URL ends up effectively turning " into…
leet
  • 118
  • 1
  • 7
6
votes
1 answer

How to write a python script to keep trying a webpage until it opens

We are waiting for my sister's result. And as it happens, a lot, with the Indian govt. the server is slow, traffic is heavy. So, I thought of writing a python program, to keep trying until the server responds to the Http request. But the program:…
tmj
  • 1,750
  • 2
  • 19
  • 34
5
votes
5 answers

How to start Microsoft Edge from Python script using webbrowser

Using webbrowser lib, I can start both Chrome and Firefox from a python script. It fails for Edge. I noticed ways to start Edge using webdriver but my question here is if it is possible to use the following script for edge. It currently starts…
Kayle199
  • 53
  • 1
  • 1
  • 6
5
votes
2 answers

Python - open a website and send cookies

How to send a cookie to the webbrowser using Python (I am using version 3.7)? I know how to open a website: import webbrowser webbrowser.open("http://www.example.com", new=2) But I have no idea, how to open that site with some cookies saved…
5
votes
3 answers

Opening a web browser in full screen python

I am currently trying to code a basic smartmirror for my coding II class in high school with python. One thing I'm trying to do is open new tabs in full screen (using chrome). I currently have it so I can open url's, but I am not getting them in…
Couzy
  • 51
  • 1
  • 1
  • 2
5
votes
5 answers

webbrowser not opening new windows

I just got a new job working remotely and I have to start my day by opening a bunch of pages and logging into them. I would love to automate this process as it can be kind of tedious. I would like to leave my personal browsing window alone and…
Adalast
  • 151
  • 1
  • 1
  • 8
5
votes
2 answers

How to setup cherrypy server sent events

I am working on a simple web app which is done with angular and cherrypy (prototyping at the moment). I am uploading two files, and then calling a external python program within cherrypy to process them, using subprocess (popen). I am able to do…
5
votes
2 answers

How to get the content from web browser using python?

I have a webpage : http://kff.org/womens-health-policy/state-indicator/ultrasound-requirements/# and I need to extract the table from this webpage. Problem Encountered : I have been using BeautifulSoup and requests to get the url content. The…
raghava.nitk
  • 85
  • 1
  • 1
  • 6
5
votes
1 answer

python webbrowser

I've been using this module without problems by calling it as: webbrowser.open("http link...") now, however, I wanted to select a different browser, and according to the docs (http://docs.python.org/library/webbrowser.html#webbrowser.get) I wrote…
alessandro
  • 3,838
  • 8
  • 40
  • 59
5
votes
1 answer

windows chrome refresh tab 0(or current tab) via command line

I'm trying to do it with python, webbrowser module. But it does not have Chromium-specific functions. Is there another way? probably with a batch script?
prongs
  • 9,422
  • 21
  • 67
  • 105
4
votes
3 answers

Python: Is there a way to specify the size/location (height, width, x, y) when opening a browser window using the webbrowser module?

I am writing a script that opens internet explorer using the webbrowser module and the .open function. By default, on my system, this opens IE in full-screen view. Is there a way to specify the size/location (width, height, x, y) of the browser…
Aksparks04
  • 41
  • 1
  • 2
4
votes
2 answers

Is there any way to open a new tab using a webbrowser module of python in colab?

import webbrowser webbrowser.open_new_tab('www.google.com') I am using Google-colaboratory and getting False as a output. Instead of that, it should open a new tab with url of Google. It's working well in python 3.7 as well as in PyCharm. I know…
1
2
3
27 28