On a bit of a tangent, I was looking at the ui.py and webbrowser.py files. One thing I saw in webbrowser.py was the OperaCoast, Mercury, etc classes. @omz could you tell us what these do or how to use them?
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by xss
-
RE: ui.WebView User Agent?
-
ui.WebView User Agent?
Looking through the documentation I can see that there's no standard way to set the user agent of the webview client. My question: is it possible to use some Objective C functions to set the user agent of the webview? I would like to set a custom user agent in an effort to get desktop versions of websites vs the default mobile site.
If anyone else has this same goal, the only workaround I can imagine working (but haven't tried) is setting the WebView width to be wider than the actual screen. This would only work if the website displays desktop version of sites based on the screen size rather than the user agent.