[ 本帖最后由 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
原帖 |