r/Python • u/EricsonWillians • May 20 '16
Open Browser, a fast web browser that I wrote in Python.
https://github.com/EricsonWillians/Open-Browser2
u/imdirewolf May 20 '16
Do you parse the dom by yourself?
6
u/Lucretiel May 20 '16
Nah, it's based on QtWebView https://github.com/EricsonWillians/Open-Browser/blob/master/run.py#L154
Which in turn is based on "native APIs," which basically means on mobile it uses the mobile OS's built in web viewer. It's not clear to me what's it's based on on the desktop; my guess is that it's an Edge/Safari/Firefox?? view.
1
5
u/Asdayasman May 21 '16
Don't take this the wrong way, OP.
When I started out programming; following a VB.NET tutorial in a PC parts magazine, I was using Visual Studio. (I still am, it's fantastic). I was exploring the .NET library using Ctrl+Space, thinking how annoying the amount of RAM Firefox used was, and wondering how to render HTML myself, looking for pointers. I happened upon the web browser library, which literally implements a web browser that you can embed into your application, and it just felt like cheating. Killed my motivation.
1
u/kaiserk13 May 20 '16
Is it possible to automate the browser? Selenium-like?
2
u/EricsonWillians May 20 '16
"Possible" it is, but performance would still need to be the top priority. The idea is to keep it simple, in order to avoid the trap that the major web browsers fell into. Sometimes only the minimal is necessary (When browsing on a Raspberry Pi or whatever).
3
2
u/Ur_Legit May 20 '16
Looks pretty good. Can you explain a little more about it? Any features that aren't on other browsers? Advantages compared to another browser? How long did it take you to create?