414 questions
0
votes
0
answers
234
views
How to code a condition statement in Python for opening websites
I want to get the code to open a webpage if the page is not on the default browser. If the page is open on the default browser it will not open the Chrome page. For example if I have a tab open for ...
-1
votes
2
answers
226
views
Python Webbrowser anchors on Local html file
When trying to to use '#' to specify anchor point in a webpage using the webbrowser lib, it seem to only work on websites, and not on local html files
webbrowser.open(https://docs.python.org/library/...
0
votes
0
answers
103
views
Not able to run next commands in Tkinter once a button command is triggered
I am creating a python scripts which will open a new JIRA URL every time i click on the Next button by changing the JIRA Case Id embedded in the URL. But when I click the Next Button first time to ...
1
vote
0
answers
58
views
How do you open a page over your current tab?
Reason
I previously asked the same question but using a different language (small basic), yet received little help. For this reason, I re-scripted the program in python hoping to reach a wider ...
0
votes
2
answers
46
views
Can I include 'import web browser' in a function?
Is it possible to do this?
def viewbrowser():
import webbrowser.open(xxx)
thank you in advance. I am still learning so please bear with me! :) Thank you for your understanding
0
votes
0
answers
118
views
Why do we add %s at last of the path of the application?
I just started working with application paths and webbrowser module. I wondered why do we add %s at last of the application path...
import webbrowser
inp = input("Enter Your Query: ")
...
1
vote
1
answer
4k
views
How to open url in browser with custom headers using python
I have tried using the webbrowser module, with the code below but want to set custom headers such as:
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (...
-1
votes
1
answer
75
views
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 ...
1
vote
0
answers
91
views
Open URL in Python in existing TAB?
I tried to use webbrowser to open a chrome tab.I tried it's every settings but it always opened url in new tab.
Is there any solution to open URL in same Tab?
0
votes
1
answer
163
views
webbrowser.open() adding a / behind the input
I was trying out searching something using voice recognition, but the command was interpreted as an URL, where it will add a / after the command. The slash is making the word to be an URL. I don't ...
1
vote
1
answer
522
views
Python Selenium click load more on table
I am trying to get the whole data of this table. However, in the last row there is "Load More" table row that I do not know how to load. So far I have tried different approaches that did not ...
-1
votes
1
answer
142
views
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 ...
0
votes
1
answer
2k
views
How to loop until element clickable
i am using python selenium chrome driver and i am stuck at this.
How can i loop this code until one of the elements is clickable?
Like if its finally clickable it should get clicked and print ("...
1
vote
1
answer
201
views
How to get a URL from python 'webbrowser'?
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, ...
0
votes
1
answer
55
views
Why can’t I fill out this field?
so I use Python Selenium Webdriver and I am stuck at filling out that credit card field... I tried many things but nothing worked...
This is my actual code, but it doesn’t work.
How can I fill it out? ...
0
votes
1
answer
33
views
Trying To Test "Webbrowser" And The Site Doesn't Show Up
Okay so I'm trying to test a little module I found called Webbrowser, and I'm using an online IDE called repl.it and it seems to work fine, I don't know if this is the IDE or just me inputting it ...
1
vote
0
answers
93
views
How to tell when python webbrowser has finished playing video
So I using code like this to open a YouTube link with webbrowser in python:
webbrowser.open("youtube.com/watch?v=" + videoLink)
and I need to tell when the video finishes so I can then do:
...
0
votes
0
answers
28
views
Clickable link gives nothing as output
I wanted to ask ppl after they used the programm if they want to join the Discord y/n if they answer with y it should give out a clickable link but if i do it is just saying None This is the Whole ...
1
vote
2
answers
138
views
Trouble selecting google one box tab in selenium
going to https://www.google.com/search?q=tennis a google one box comes up for scores, I'm trying to click on the tabs and (Women's Singles, Men's Doubles etc) and having no luck. I've tried all ...
1
vote
3
answers
2k
views
Logging into Gmail using Python with detecting failed login
I know that multiple people have asked a similar question about this however, I would like to know how to login to gmail (or google account) using python. I have a code already (see below) that can ...
1
vote
3
answers
237
views
I have a program that opens websites, and I set my default browser to google chrome, but it still uses Internet Explorer
This is what I have so far. Do I need to change anything to make webbrowser package use Google Chrome?
import webbrowser
web = input('What website would you like to open? i.e. pbskids.org')
webbrowser....
0
votes
1
answer
66
views
Matching a specific piece of text in a title using Beuatiful Soup
Basically, I want to find all links that contain certain key terms. In my case, the titles of these links that I want come in this form: abc... (common text), dce... (common text), ... I want to ...
0
votes
2
answers
460
views
webbrowser open internet explorer error instead of default browser (python)
I was suffering from webbrowser internet explorer problem the code worked fine but it opens the internet explorer the simplest solution is to use " https://www " in starting of every url it ...
-1
votes
2
answers
623
views
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 ...
-1
votes
1
answer
1k
views
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 ...