webbrowser.open( local html file but with parameters)

Viewed 25

I want to open a local html file(videoPlayer.html) from python using webbrowser.open(), but i want to add url parameters that will be accessed from javascript.

ive tryed the following

webbrowser.open('file://' + os.path.realpath('videoPlayer.html?vidurl='+url))

when the page opens, the url doesnt contain the parameter "vidurl" like this: file:///C:/Users/username/Desktop/videoPlayer.html"

ive also tryed this

webbrowser.open('file:///C:/Users/hanno/Desktop/egybest%20python/videoPlayer.html?vidurl=wahtever.mp4')

but i get the same result, just the pure path of the file with out parameters

0 Answers
Related