お気に入りのリスト
が便利ぃなので YouTube に貯めてる My Favorites を del.icio.us にシンクロさせたくなってきたのですが、My Favorites の RSS が見当たりません。使ったことがないのだけど CustomFeed::YouTube でハンドリングできたらうれしいなぁ。できなかったら YouTube API 使って (参考)
http://www.youtube.com/api2_rest?dev_id=YOUR_DEV_ID&user=YOUR_YOUTUBE_ACCOUNT&method=youtube.users.list_favorite_videos
とリクエストすると、
<video_list> <video> <author>youtuberocks</author> <id>k0gEeue2sLk</id> <!-- this ID can be used with youtube.videos.get_details --> <title>My First Motion Picture</title> <length_seconds>16</length_seconds> <!-- length of video --> <rating_avg>3.75</rating_avg> <rating_count>10</rating_count> <description>This is the video description shown on the YouTube site.</description> <view_count>170</view_count> <upload_time>1121398533</upload_time> <!-- UNIX-style time, secs since 1/1/1970 --> <comment_count>1</comment_count> <!-- how many comments does this video have? --> <tags>feature film documentary</tags> <url>http://www.youtube.com/watch?v=k04Eeue24Lk</url> <thumbnail_url>http://static.youtube.com/get_still?video_id=k04Eeue24Lk</thumbnail_url> </video> <video> ... another video ... </video> </video_list>
こんな感じのデータが返ってくるから、てきとーに加工して del.icio.us に送り付けよう。シンクロさせるには前回の最新 video を覚えておかないとだめかな。