I am making an page that will automatically display the number of subscribers for a Youtube user on a PHP page.
On the Youtuber’s homepage, there is a DIV with an id of ‘profile_show_subscriber_count’.
I would like to use PHP or even jQuery (I know they’re totally separate, but I think it is possible with both) to get the value between the and the < div > and the < / div > (a number).
Anyone know how to do this?
PS – I could also do this for total views with the same method.
Use the API
http://code.google.com/intl/sv-SE/apis/youtube/2.0/developers_guide_php.html
http://code.google.com/intl/sv-SE/apis/youtube/2.0/developers_guide_php.html#Subscriptions