Created
August 26, 2011 09:47
-
-
Save zeuxisoo/1173084 to your computer and use it in GitHub Desktop.
Python re module grep current number (3 Person column) on public house
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
print int(''.join( | |
re.compile( | |
r'<td class="componentBlack" nowrap="nowrap" align="right">(.*?)</td>' | |
).search( | |
re.compile( | |
r'<td class="componentBlack" nowrap="nowrap" align="right">.*?</td>', | |
re.MULTILINE | |
).findall(open('test.html', 'r').read())[4] | |
).group(1).replace(" ", " ").split(" ") | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment