community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r1867138 - /comdev/tools/followers.py
Date Wed, 18 Sep 2019 16:41:32 GMT
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 = *



Mime
View raw message