Results 1 to 2 of 2

Thread: Perl script to add videos from google reader to watch later queue

  1. #1
    Join Date
    Apr 2012
    Posts
    4

    Default Perl script to add videos from google reader to watch later queue

    Hello all,

    My plan is to use the perl module WebService::Google:Reader for this. I already have that part working. The part that I need help with is how to go about using curl or something similar to post the URLs containing the video to boxee so they are added to my watch later list.

    Here's the sample code for grabbing video from my google reader lists:
    Code:
    #!/usr/bin/perl
    #
    
    use strict;
    use warnings;
    use WebService::Google::Reader;
    
    my $query = shift or die "missing query";
    my @feeds = @ARGV;
    
    my $reader = WebService::Google::Reader->new(
        username => 'EDITED',
        password => 'EDITED',
    );
    
    my $feed = $reader->search($query, feed => \@feeds, count => 100)
        or die $reader->error;
    
    do {
        for my $entry ($feed->entries) {
    #        print $entry->title, "\n";
            print $entry->link->href, "\n" if $entry->link and $entry->link->href;
        }
    
        sleep 1;
    } while ($reader->more($feed));

  2. #2
    Join Date
    Sep 2008
    Posts
    14

    Default

    Hey, I actually don't have any perl experience, but I have written a python back-end web interface that should help you out https://github.com/niamu/boxee-watchlater

    That should give you a starting point.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •