Hello!

I'm looking for a way to automatize a process using existing basic Firefox functionality. Basically, what I want to do is:
- Load a website
- Parse it and create the DOM tree
- Access the DOM tree and look for certain features
... and all this in an automatic scripted fashion.

Clearly, Firefox is capable of providing the functionality. What I don't know is, how can I script this using Firefox components?

Of ocurse, I would prefer not to have to familiarize myself with a large portion of the FF source code. In fact, if possible, source changes should be avoided completely, since my demands are not very specific I think. I have come accross XPCOM, which sounds like a nice way to control Gecko (and thus, I hope, everything I need). However, I haven't found any resources on how exactly I can use the XPCOM components (or at least where to find them) that are already included in Firefox. I would have hoped to find e.g. an HTTP parser component, that i could instantiate and control (using XPCOM) from within my perl|python|c++ application. I would be very happy to be pointed to an example for doing such a thing.

In case I'm totally on the wrong track and XPCOM is not suitable for my task, what would be the recommendable way? How to script the Firefox internals?

Regards,
Peter.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to