Wednesday, April 18, 2012

[YouTube-API] Re: Back-population of data?

Hello Nicolai,

This is still the case. Sorry to disappoint.

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Apr 15, 11:11 am, Nicolai Linde <bar1...@gmail.com> wrote:
> Is this still the case? I've been trying to find out how to do this but I
> can't find anything.
>
> There is no way to filter feed results based on time or id? Twitter has
> since_id=id and Facebook has since=unix_time, its strange that this feature
> has not been implemented.
>
>
>
>
>
>
>
> On Thursday, February 18, 2010 10:32:26 PM UTC+1, Jeffrey Posnick wrote:
>
> > Hello Matt,
>
> >  The YouTube API doesn't support any parameters to limit a search to a
> > specific date range. Documentation for supported parameters can be
> > found at
>
> >http://code.google.com/apis/youtube/2.0/developers_guide_protocol_api...
>
> > There's a 'time' parameter, but that won't really give you what you
> > want.
>
> >  Your best bet may to be retrieve the uploads feed (http://
> > gdata.youtube.com/feeds/api/users/USERNAME/uploads) for a given user
> > and make a one-time iteration through all those pages to find videos
> > you were previously missing.
>
> > Cheers,
> > -Jeff Posnick, YouTube API Team
>
> > On Feb 17, 12:54 pm, "Matt W." <mjwinbe...@gmail.com> wrote:
> > > The entirety of the exception is listed below.  Thank you for the tip,
> > > Frank!
>
> > > Before I paste that, though, let me spell out the entirety of my
> > > business challenge.  About 2 months ago, we realized that we were only
> > > pulling information for the "default" number of videos per day (25).
> > > We remedied the problem by using the API's paging functionality, and
> > > now our system works perfectly.  However, we would like to back-
> > > populate the data that we missed on all the days prior to us
> > > implementing the fix (i.e. all the days prior to our "fix" being
> > > implemented for which we still only have data on 25 videos).  Is this
> > > even possible?
>
> > > Any guidance on this front would be greatly appreciated.  Anyway, as
> > > promised, here is my entire GDataRequestException:
>
> > > Google.GData.Client.GDataRequestException: Execution of request
> > > failed:
> >http://gdata.youtube.com/feeds/api/videos?author=xxxxxxxxx&updated-mi...
> > > ---> System.Net.WebException: The remote server returned an error:
> > > (403) Forbidden.
> > >    at System.Net.HttpWebRequest.GetResponse()
> > >    at Google.GData.Client.GDataRequest.Execute()
> > >    --- End of inner exception stack trace ---
> > >    at Google.GData.Client.GDataRequest.Execute()
> > >    at Google.GData.Client.GDataGAuthRequest.Execute(Int32
> > > retryCounter)
> > >    at Google.GData.Client.GDataGAuthRequest.Execute()
> > >    at Google.GData.Client.Service.Query(Uri queryUri, DateTime
> > > ifModifiedSince, String etag, Int64& contentLength)
> > >    at Google.GData.Client.Service.Query(Uri queryUri, DateTime
> > > ifModifiedSince)
> > >    at Google.GData.Client.Service.Query(FeedQuery feedQuery)
> > >    at Google.GData.Client.Feed`1.get_AtomFeed()
> > >    at Google.GData.Client.Feed`1.<get_Entries>d__0.MoveNext()
> > >    at xxx.YouTube.YouTube.PrintVideoFeed(TextWriter writer, Feed`1
> > > feed) in c:\xxx\YouTube\YouTube.cs:line 116
> > >    at xxx.YouTube.YouTube.PrintResults(TextWriter writer, String
> > > authorName) in c:\xxx\YouTube\YouTube.cs:line 55
>
> > > On Feb 17, 8:56 am, Frank Mantek <fman...@gmail.com> wrote:
>
> > > > Always, always look at the ResponseString property of the
> > Gdatarequestexception. It should show you the responsetext that the server
> > returned. Often this provides some good clues of what is wrong.
>
> > > > And yes, i am assuming, as you do, that you are not allowed to use
> > those parameters on video feeds. But someone from the youtube team is
> > probably better able to answer that.
>
> > > > Frank Mantek
> > > > Google
>
> > > > On Feb 16, 2010, at 9:40 PM, Matt W. wrote:
>
> > > > > Hello fellow YouTube developers!  I need guidance on back-population
> > > > > of API data.
>
> > > > > I have the following c#.net code:
>
> > > > >            YouTubeQuery query = new
> > > > > YouTubeQuery(YouTubeQuery.DefaultVideoUri);
> > > > >            query.Author = authorName;
> > > > >            query.StartDate = new DateTime(2010, 2, 1);
> > > > >            query.EndDate = new DateTime(2010, 2, 1);
> > > > >            Feed<Video> videoFeed = GetRequest().Get<Video>(query);
>
> > > > > It is generating the following error message:
>
> > > > > Google.GData.Client.GDataRequestException: Execution of request
> > > > > failed:
> > > > >http://gdata.youtube.com/feeds/api/videos?author=<ClientName>&updated-min=2010-02-16T00:00:00-08:00&updated-max=2010-02-16T0
> > 0:00:00-08:00
> > > > > ---> System.Net.WebException: The remote server returned an error:
> > > > > (403) Forbidden.
>
> > > > > I'm guessing that StartDate and EndDate aren't valid fields (even
> > > > > though they are available via Intellisense).  My goal is to back-
> > > > > populate my client's database with earlier data.  Is this even
> > > > > possible?
>
> > > > > Many thanks for any responses,
> > > > > -Matt
>
> > > > > --
> > > > > 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 athttp://
> > groups.google.com/group/youtube-api-gdata?hl=en.

--
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