All Questions
28,097 questions
0
votes
2
answers
63
views
How to get the background color of a web page using selenium with python [closed]
Using this code:
import re
def rgba_to_hex(rgba_str):
# Extract the numbers from the rgba string
match = re.match(r'rgba?\((\d+), (\d+), (\d+)(?:, [\d.]+)?\)', rgba_str)
if not match:
...
2
votes
1
answer
32
views
How to make a proper code injection statement for a simulation?
I'm currently working in a group project where we are simulating a code injection attack on a simulated smart device, specifically a light bulb. the way this works is using an HTML page with the ...
-3
votes
1
answer
67
views
Flask HTML Cootie Catcher -- 415 Unsupported Media Type
I am new to Python and Flask and am trying to write a cootie catcher program. I've looked at a few tutorials and am testing what the google AI gave me until I can understand what's happening. Whenever ...
1
vote
1
answer
53
views
How do i create a watch later feature to add movies to a section then remove later (No javascript allowed)(Use Vue2, HTML, and python)
For my assignment, I need to create a feature where people can add different movies to a watch later section. For this, we are only allowed to use Brython, HTML, CSS, and Vue(I believe our lecturer ...
1
vote
2
answers
86
views
I can't find the cause for a 405 error in my POST method
I am working on a form using the Django framework and I keep getting a 405 error which I can't seem to fix. I have an html template which contains a form allowing admins to add new TAs to the database
...
-3
votes
0
answers
80
views
I have a Python App that's stuck in a "Flask is not installed / Flask must be installed" loop
I am working on a resume builder to try and put a dent in Workday and Indeed. I have a Python app with Flask that drives an Html Page ... the idea is to take an existing resume and build a new version ...
0
votes
0
answers
33
views
Pyinstaller compiles eel but does not find the sources
when i run it in vscode without compiling it with pyinstaller
eel normally opens a new window with my web app
but if i compile it and then run it with the web files in the same dir like it is when ...
-1
votes
0
answers
69
views
Having trouble with ajax and returning checkbox state(s) and textbox contents to Python [duplicate]
Wondered if anyone could help as I'm having a bit of trouble. I can successfully return the state of an array of checkboxes to Python/Flask. But, I cannot for the life of me return the textbox ...
1
vote
2
answers
48
views
Do I need a local install of Firefox if using Firefox driver in Selenium?
I'm using Librewolf as my personal browser, in my script I'm using Firefox driver, do I need to install Firefox in my machine in order for the driver to work "better"? I have a Python + ...
2
votes
1
answer
42
views
Form causes an unsupported media format error
I'm working on a todo app for a class project and the /add_todo route returns a 415 error code whenever I try to add a todo.
@app.route("/add-todo", methods=["GET", "POST"...
1
vote
2
answers
139
views
How do I unittest an HTML page that contains an embedded dynamic image?
I've got an dynamic HTML page that contains a QR code that is generated dynamically and embedded using <img src=data:image/png:....>. I had been testing the page by generating it with specific ...
0
votes
1
answer
38
views
PyQt6 WebEngine – Detecting username and password fields on a website
I am building a web browser with PyQt6 and its WebEngine framework, and would like to make a password manager that enters usernames and passwords directly into websites in the WebEnginePage being ...
0
votes
0
answers
55
views
Extract span values using BS4
I'm trying to extract "Date Applied" and "17 Apr 2025 06:00", from html below:
<span class="labels" part="text-and-icon-labels">
<slot part="...
0
votes
1
answer
88
views
Can't establish connection between web socket and server
I'm building a chat app using Django Channels, Redis and Daphne. When I try to send a message by clicking the submit button, a GET request is made, but I've written JavaScript in my HTML file that's ...
1
vote
0
answers
27
views
How to use a hidden key for cross-filtering across multiple charts in Observable Plot?
I'm working on a dashboard using Observable Plot and I want to implement cross-filtering across multiple bar charts. The issue I'm facing is that the key I want to use to filter across charts (e.g., ...