How can I open a url and output the processed DOM to a file?
Similar to TagSoup, JTidy, and JSoup I want to have a well formed version of a webpage as processed by firefox.
Do I need to make a plugin to hook into this?
Thanks
Tất cả các câu trả lời (4)
You can do that via the DOM Inspector > File > Save DOM as
That's great. Do you know how I can load a url and save the dom from the command line or an API ?
No. You will have to load the website (you can do that by adding the link to the command line) and launch the DOM Inspector.
Ya I saw that.. I found this python/qt/webkit thing to do it
http://www.rkblog.rk.edu.pl/w/p/webkit-pyqt-rendering-web-pages/
And this project seems like it can make firefox do it: http://seleniumhq.org/