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

Browser Automation?

I want to create a little program with following features. Use proxy in format proxy:port:username:password Choose a proxy sequentialially from list Open http://example.com Fill Details choosing data from data.txt ( CSV ) Export…
0
votes
2 answers

Python CGI script returning inconsistent results

So I have a Python CGI script running on my apache server. Basically, from a webpage, the user enters a word into a form, and that word is passed to the script. The word is then used to query the Twitter Search API and return all the tweets for that…
user1493543
  • 375
  • 3
  • 5
  • 14
-1
votes
1 answer

re.findall picking up only second digit of a two digit number in a web page

I am trying to parse an HTML Page using Regualr Expressions. I have to find out the sum of all comments from this web page: https://py4e-data.dr-chuck.net/comments_42.html Everything else is working fine but the re.findall function is only picking…
-1
votes
1 answer

Is there a way to get the page content from the loaded webpage using Webbrowser module (Python)

Is there a way so I can get the page content from the page I launch using: import webbrowser url = 'http://docs.python.org/' # MacOS #chrome_path = 'open -a /Applications/Google\ Chrome.app %s' # Windows chrome_path = 'C:/Program Files…
user982455
  • 11
  • 3
-1
votes
1 answer

Python Selenium Safari

I don't understand how this works: If I open a website by hand in for example Safari or Chrome, I can log me on and if I close the browser I automatically log in after reopen the browser. So I once log in in Instagram, the next time I don't have to…
DerFranzG
  • 27
  • 2
-1
votes
1 answer

Python Web browser click listener

Is there any packages or ways to detect what is being clicking in a web browser? I mean get tag/xpath from the web browser (of what is being clicked)? To afterwards find it via selenium or similar? Or even with to determine what it is with the…
sdoedos
  • 41
  • 11
-1
votes
1 answer

Open browser with selenium without creating new instance

I am automating a form-filler using selenium, however the issue is the user needs to be logged in to their google account. Selenium is opening up a new browser instance where the user is not logged in. I cannot automate the log in process due to 2…
imstupidpleasehelp
  • 1,618
  • 2
  • 16
  • 36
-1
votes
1 answer

Unabe to load Dynamic images using loop counter in django

I am unable to load th image using loop counter. Its loading the page http://localhost:8000/static/images/png%7B%7Bforloop.counter%7D%7D.png instead of http://localhost:8000/static/images/png1.png http://localhost:8000/static/images/png2.png def…
-1
votes
1 answer

Using format on webbrowser module

def openany(): url = self.textentry.get() print(format('https://%s'% url)) wb.get(c).open(('https://%s'% url)) I want it to format my entry to include Https:// before the entry. Instead it will print…
-1
votes
1 answer

Get Element using BeautifulSoup that does not have a class in HTML

I am trying to get the text of the user's rank from this webpage. By "rank" I mean the text you see in the top right corner of the user's info: In this example rank is "Competitions Master". So how do I get that text?
-1
votes
1 answer

How to send keys to this element

I am using Python selenium chrome driver and i am stuck at filling out the csc and the year of the creditcard information field ( look at picture ). The credit card number and month works fine with this code: iframe =…
-1
votes
1 answer

Tkinter says "Not Responding" until webbrower is closed

Tkinter says "Not Responding" until webbrowser is closed is it possible to fix with multi-threading? i have added the code here beat() has the webbrowser and i am calling them from solve() of button click I have removed some code as it says" It…
-1
votes
1 answer

Python Webbrowser Library not working with Chrome

I'm trying to code an automation function which opens the entered URL. The code works if I'm not working with Chrome browser; but doesn't work with Chrome browser: it fails to detect my Chrome Browser and returns the error "could not find runnable…
-1
votes
2 answers

Display back-end errors in python flask

I had a simple flask program that used to uploads image and runs at the backend, in this if any errors occur at the program it does not display the error instead it shows as process end. My flask program as below: import os from app import app from…
-1
votes
1 answer

Python webbrowser module on raspberry pi 4

My problem is very simple. When I start python modules that use webbrowser.open("anywebsite"), all works perfectly, but when I put it on a module that is started by cron at the startup of the rpi, when it comes to execute this line, nothing shows…