Originally Posted by
martynp
Hi,
Just showing the amount of unread items would be cool.
Have been using the grNotify app but it has some issues so I have given up on it.
Any way of doing a simple script to show unread item count like with email?
Pretty pleaaaaaaaase!
Martyn
Okay, okay, okay
I have something nearly there...bloody google require cookie authentication for this which was a bit%h to sort out nicely, but got it working....
Right now I can bring back the xml which contains the unread items e.g.:
Code:
<object>
<number name="max">1000</number>
<list name="unreadcounts">
<object>
<string name="id">feed/http://www.usp.ac.fj/news/rss.php</string>
<number name="count">9</number>
<number name="newestItemTimestampUsec">1215032380461011</number>
</object>
<object>
<string name="id">feed/http://www.fijitimes.com/rss.aspx?section=local</string>
<number name="count">1000</number>
<number name="newestItemTimestampUsec">1215582131344330</number>
</object>
...
</list>
</object>
You can tell I haven't used google reader in a while...
From this I can give a general count on how many feeds have unread items and display each feed and it's unread count. Which way do you want it?
They need beer tokens on the net redeemable at any good off-licence
EDIT
I've attached the script, general help below:
Code:
Usage: conkyGoogleReader.py [options]
Options:
-h, --help show this help message and exit
-u USERNAME, --username=USERNAME
username to login with
-p PASSWORD, --password=PASSWORD
Password to login with
-v, --verbose request verbose output, not a good idea when running
through conky!
So in conky you would use something like this (haven't tried it in conky, just in eclipse (dev ide)):
Code:
{execi 1800 python conkyGoogleReader.py --username=someone@gmail.com --password=something}
Give your email and password for your google account and it should come back with something like "5 Unread Feeds"
[COLOR="Blue"]Edit2: updated script in latest post!/COLOR]
Bookmarks