You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by rb...@apache.org on 2019/09/18 16:41:32 UTC
svn commit: r1867138 - /comdev/tools/followers.py
Author: rbowen
Date: Wed Sep 18 16:41:32 2019
New Revision: 1867138
URL: http://svn.apache.org/viewvc?rev=1867138&view=rev
Log:
count followers
Added:
comdev/tools/followers.py (with props)
Added: comdev/tools/followers.py
URL: http://svn.apache.org/viewvc/comdev/tools/followers.py?rev=1867138&view=auto
==============================================================================
--- comdev/tools/followers.py (added)
+++ comdev/tools/followers.py Wed Sep 18 16:41:32 2019
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+
+# How many followers do you have?
+import urllib2
+import re
+
+feeds = ['theasf',
+ 'apachecon',
+ 'apachecommunity'
+ ];
+for feed in feeds:
+ response = urllib2.urlopen('https://twitter.com/' + feed)
+ html = response.read()
+ print feed + ': ' + re.search('.*?([\d,]+ Followers).*', html).group(1)
+
Propchange: comdev/tools/followers.py
------------------------------------------------------------------------------
svn:executable = *