本站已关停,现有内容仅作科研等非赢利用途使用。特此声明。
查看: 2795|回复: 0

强制在GoogleReader刷新Feed

[复制链接]
发表于 2012-10-18 15:18:18 | 显示全部楼层 |阅读模式
[ 本帖最后由 chenglu 于 2012-10-18 15:23 编辑 ]\n\n
Google Reader really hates updating feeds that don't have a lot of subscribers, for performance reasons. But you can force it to update a feed through the API. I have this running every fifteen minutes.


#!/bin/bash

username=''
password=''
feed=''

feed="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$feed")"
unixtime=`date +'%s'`

token=`curl -s -d accountType=GOOGLE -d Email=$username -d Passwd="$password" -d service=reader https://www.google.com/accounts/ClientLogin | grep 'Auth=' | sed 's/Auth=//'`
curl -s "http://www.google.com/reader/api/0/stream/contents/feed/$feed?n=1&refresh=true&ck=$unixtime" -H "Authorization:GoogleLogin auth=$token" &> /dev/null

原帖
ChinaGDG.com
回复

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表