I would like to setup a simple web browser that download a html page , parse it, generate a dom and execute the javascript code. I would like to know if there is a simple project(so not firefox which is good but too big to just understand this piece of logic) showing if it is the right way to handle this or someone to explain me if i am missing something. No particular language( but preferably be python, c#/c++/c ). I am stuck now at integrating the javascript engine, i don't know what to do.
Thx
-
2Browsers are extremely complicated, for a reason.SLaks– SLaks2011年06月29日 13:14:56 +00:00Commented Jun 29, 2011 at 13:14
3 Answers 3
I don't think its easy to pull off a javascript engine on your own. You could however use an open source engine (like WebKit's JS engine for example) and integrate it in your project.
More Infos:
1 Comment
google chrome is open source too with a neat javascript engine v8. http://code.google.com/chromium/ http://code.google.com/p/v8/
another way could be nodejs. it's server side javascript using the v8 engine. so there is no rendering, just pure javascript. maybe thats enough if you do not need the rendering. http://nodejs.org/
Comments
You might want to use the WebBrowser class from .NET for that purpose.
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx
1 Comment
Explore related questions
See similar questions with these tags.