#!/usr/bin/env python
# kuntoaji.blogspot.com
# IMPORTANT: Feedburner awareness API must be activated
# Replace with your own name
feedburner_name = "railsmine"
import urllib
from xml.dom import minidom
try:
dom = minidom.parse(urllib.urlopen('https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri='+feedburner_name))
entry = dom.getElementsByTagName('entry')[0]
count = entry.getAttribute('circulation')
print "total subscriber:",count
except:
print "Oops! Something went wrong. Check your feedburner's name or your internet connection."
Artikel TerkaitSunday, September 11, 2011
Python - Count Feedburner's Subscriber
Summary: Python script to count subsriber from Feedburner. Before run this script, Feedburner awareness API must be activated. This is script is inspired by Eric Wendelin.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment