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
-1
votes
1 answer

Is there a way to open a website and paste using python?

I have some code that relies on google maps to work. When you open Google Maps it opens a text-box. And the cursor is open to type. I am using the web browser module and the open function. How could I directly paste to the text-box?
-1
votes
1 answer

How to pass additional arguments to webbrowser.open

import webbrowser number = input('Enter text ') webbrowser.open("https://www.bing.com/search?q=",number) exit = input('press any key to exit') Basically I need to search for an input that the user says, but when the user presses enter it only…
BilliesBob
  • 11
  • 2
-1
votes
1 answer

Getting "no runnable browser detected" when opening Opera with webbrowser

List=['google.com','facebook.com','youtube.com'] c = webbrowser.get('opera') for i in List: c.open(i) I am using Sublime text and then running the code in cmd. I am trying this for a long time but it says, no runnable browser detected. Please…
-1
votes
1 answer

Issue in PyQt within Python - WebBrowser Project

The code below is a WebBrowser code. The problem is when I want to switch tabs which happens in the function 'SwitchTab'. I've checked that in function 'SwitchTab', my 'Tab_Content' variable is empty-as it prints 'None'- and here is the problem. I…
-1
votes
3 answers

How to open URL for 1 min and closed after the 1 min in python?

I want to open a URL for 1 minute and then close it automatically after the 1 minute has passed using Python, how can I do that it please? import time import webbrowser open('https://www.example.com') time.sleep(5)
-1
votes
2 answers

Why is webbrowser.open not working in repl.it?

For a python project I'm using repl.it for a text-adventure game. But webbrowser.open('url went here') is not working in repl.it. It's not opening the web page page. Any idea why?
Oran
  • 45
  • 5
-1
votes
1 answer

How can I search an HTML website for a keyword and paste that link in the search bar?

I am trying to make a textbox that extracts a word into a keyword in chrome. When i press a button the keyword in the textbox gets implemented into chrome and if that keyword is found, it then goes into that hyperlink. The code is so far: from…
HugoS
  • 105
  • 11
-1
votes
1 answer

Issues with webbrowser in online Python IDE

I am trying to use an online IDE called repl.it and use the webbrowser module to open a webpage. This is the code I use: from webbrowser import * webbrowser.open('https://reddit.com') But the function returns False as indicated in the online…
miike3459
  • 1,431
  • 2
  • 16
  • 32
-1
votes
1 answer

ModuleNotFoundError: No module named 'PyQt5.QtWebEngineView'

I am executing the code on windows system and over Pycharm. I have got an error : *C:\Users\HP\PycharmProjects\untitled2\venv\Scripts\python.exe C:/Users/HP/PycharmProjects/untitled2/MyBrowser.py Traceback (most recent call last): File…
-1
votes
1 answer

How can I navigate a site after logging in

I have used mechanize and successfully logged into a user login page. Now I want to navigate the site to a specific page in the submenus. When I try this by opening the URL of the specific page after logging in, another login page comes up which I…
-1
votes
1 answer

webbrowser.open_new_tab or webbrowser.open not working in ubuntu 14.04

New tab with provided url is not opening in Ubuntu 14.04 Same code works in Mac OS X Yosemite I have flask installed on both Ubuntu 14.04 and Mac Yosemite Both have python 2.7.6 installed Below is the source code: import webbrowser from flask import…
Rookie
  • 735
  • 5
  • 11
  • 30
-1
votes
1 answer

Python 3 - View video from web (ex:youtube)

I was wondering if there was a library or a way to view videos on the internet. It doesn't have to be the hole page printed out. It could be the containing the video in it (which is enough to display the video) If there is not, then is there way to…
Bob Ebert
  • 1,342
  • 4
  • 22
  • 41
-1
votes
1 answer

Create a web-browser window using wxpython

How am I going to create web browser-like window in wxpython wherein every time a button is clicked, this window will display all the files I want to download from an ftp site. Any help would be appreciated. Thanks!
lovelyvm
  • 127
  • 2
  • 16
-1
votes
1 answer

Is it possible to run python scripts from webinterface?

One of my project needs me to run a Python scripts that are present on VPS. Is it possible to run those scripts from web interface? There are web development platforms out there like Django. Can those can help me in this project? Example: I need to…
-2
votes
2 answers

How to get the url of the site you are currently on for parcing in real time?

To parse the site, I need to collect information in real time from the page I am on. And I need to get a link, which is always completely different. I did this through the mouse library and keyboard, but this is not very convenient because it…
Klonmine
  • 21
  • 1