Created
September 29, 2013 06:37
-
-
Save legoktm/6749907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
regex=re.compile('<em>(\d*?) members total,') | |
with open('dalpass') as f: | |
adminpass = f.read() | |
s = requests.Session() | |
d = {'adminpw': adminpass, 'admlogin': 'Let me in...'} | |
s.post('https://lists.wikimedia.org/mailman/admin/daily-article-l/', data=d) | |
r = s.get('https://lists.wikimedia.org/mailman/admin/daily-article-l/members') | |
count = regex.search(r.text).group(1) | |
print count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment