I hope the title is clear.
What i need to do is get a web page's DOM, i.e what you will get in firefox by selecting all the content of the page and then right clicking on it and selecting view selection source (not the same as the html source code you get by just viewing the page's source).
I need it for further analyzing using a python script. any programming language or program that can run on linux will do.
Thanks, Noam

P.S
If my terminology isn't accurate please correct me.