Saturday, January 14, 2012

[YouTube-API] python code to get insight data

Hi,
I am trying to develop a crawler using python. Instead of having the total number of views, I am trying to have the views in weekly basis. For example, the views in first week, second week and so on since the upload. Is it really possible to write such a code in python?

I am trying to use a python code something like given below:
uri="http://insight.youtube.com/video-analytics/csvreports?query=PlVJ88-zqkI &type=v &starttime=1296086400000 &endtime=1298505600000 &user_starttime=1297900800000 &user_endtime=1298505600000 &region=world &token=lGYc7XEFNTATxTmseKN_M--c7-V8MTI5ODY3MzQ2Nw== &hl=en_US"
feed=yt_service.GetYouTubeVideoFeed(uri)

If the code works, I need to know the following answers:
1.how can I get the token each time for a video?
2.What is the user_startime and endtime?

Please help me.

Thanks,
Shaiful


--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/ojgop_tpzM4J.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment