PHP, Parse javascript and extract flash object!
I have got a list of many web page URLs.. and all of them contain videos. These videos are embed via simple HTML and tags. I can extract these tags by some RegEx techniques.
Now the problem is that majority of them use Javascript to embed these elements! And as they are from different websites.. They dont have any specific pattern.
The only thing i can do now is to make my "PHP execute the Javascript". And i'm stuck in this task..
I want this extraction to be done via PHP script. Ive tried jParser and jTolkenizer but i cant get i开发者_运维技巧t to work in this case.
Any help would be appreciated.
Thanks.
The only thing i can do now is to make my "PHP execute the Javascript". And i'm stuck in this task..
Oh goodness, don't do that. The effort you'll spend (and security problems you'll open) is going to be way, way more of a time sink than coding specific identifier code for each site that I'm blindly assuming that you're scraping.
精彩评论