d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Tracking Youtube Statistics > How To Do It?
Prev12
Add Reply New Topic New Poll
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
Jun 18 2014 12:08pm
Quote (labatymo @ Jun 18 2014 12:52pm)
Thanks, I'll give JSoup a try.


:thumbsup:
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jun 18 2014 05:50pm
+1 for using the API. in java, i used xstream to convert the xml to pojo.

parsing the html from the page sounds like something i'd do if there's no api lol
Member
Posts: 11,643
Joined: Dec 18 2006
Gold: 340.00
Jun 18 2014 11:36pm
Can't you only use Youtube's API for your own videos? I want to do it for videos I do not own.
Thank you so much for all of the input, everyone!
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jun 19 2014 12:09am
Quote (Eoj @ Jun 19 2014 01:36am)
Can't you only use Youtube's API for your own videos? I want to do it for videos I do not own.
Thank you so much for all of the input, everyone!


Check out my post. Youtube offers a XML data api for each video, all you need is the youtube video ID. Using a real xml parser is better, but I simply just used regex to get my data.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jun 19 2014 06:21am
Quote (Eoj @ Jun 19 2014 01:36am)
Can't you only use Youtube's API for your own videos? I want to do it for videos I do not own.
Thank you so much for all of the input, everyone!


you can get it for pretty much any video. if subscriptions are public (channel by channel basis), you can access their subscription vids too.
Go Back To Programming & Development Topic List
Prev12
Add Reply New Topic New Poll