Skip to content

Instantly share code, notes, and snippets.

@hj91
Created April 27, 2011 11:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hj91/944127 to your computer and use it in GitHub Desktop.
Save hj91/944127 to your computer and use it in GitHub Desktop.
A small python snippet to parse identi.ca replies for a particular user
# A small python snippet to parse identi.ca replies for a particular user..in this case, it is HJ91
# (c) 26 April 2011, Harshad Joshi
import urllib2
import feedparser
a=urllib2.urlopen("http://identi.ca/api/statuses/mentions/hj91.rss")
b=feedparser.parse(a)
for i in range(len(b.entries)):
print b.entries[i].title
@pschwede
Copy link

range not needed, iterate using internal iterator:

for entry in b.entries:
    print entry.title

@hj91
Copy link
Author

hj91 commented Apr 28, 2011

your code looks more clean..i think i will use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment