This post has some more info as to how you can get Insight URLs from
Python:
https://groups.google.com/group/youtube-api-gdata/browse_thread/thread/d47a60af43d6fd48
The user_starttime and user_endtime are values that you need to
generate on your own. They're the number of milliseconds after the
epoch.
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Jan 14, 11:17 pm, Shaiful Chowdhury <msa...@gmail.com> wrote:
> 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
> * ®ion=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 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