2014-07-20, 21:34
From pure self-interest I've started fixing the YouTube plugin whenever something is changed on youtube's side to break it.
It's basically an arms race of them constructing obscure javascript language structures and us figuring out ways to parse it into Python.
As an alternative, I have a local proof-of-concept using Google's own V8 javascript engine and PyV8 (python bindings for such) which mean we in theory can decode anything they throw it us with no more updates to the code required - if we can't parse it, Chrome browser can't either.
However, this would require installing the v8 libraries (c++), several Boost Python libraries (to let python call c++), and then the PyV8 python module.
Is any of this something people feel could/should/would be done? While it seems a lot for just one plugin, the youtube plugin is one of the "main attractions", and it would mean all plugins have access to javascript exection too, for other sites that perhaps use similiar obsfucation techniques or even simplifying basic web-service access.
I'm happy to do the work, but I have no idea where to start or if this is something that's appropriate. I've kinda "fallen into" doing this, so any pointers or suggestions would be appreciated.
It's basically an arms race of them constructing obscure javascript language structures and us figuring out ways to parse it into Python.
As an alternative, I have a local proof-of-concept using Google's own V8 javascript engine and PyV8 (python bindings for such) which mean we in theory can decode anything they throw it us with no more updates to the code required - if we can't parse it, Chrome browser can't either.
However, this would require installing the v8 libraries (c++), several Boost Python libraries (to let python call c++), and then the PyV8 python module.
Is any of this something people feel could/should/would be done? While it seems a lot for just one plugin, the youtube plugin is one of the "main attractions", and it would mean all plugins have access to javascript exection too, for other sites that perhaps use similiar obsfucation techniques or even simplifying basic web-service access.
I'm happy to do the work, but I have no idea where to start or if this is something that's appropriate. I've kinda "fallen into" doing this, so any pointers or suggestions would be appreciated.