Created
June 27, 2016 22:56
-
-
Save neonichu/f6adb19c00c89ae9582a3e81669d0f07 to your computer and use it in GitHub Desktop.
Extract open radar numbers from radar web HTML
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
#!/usr/bin/env python | |
from BeautifulSoup import BeautifulSoup as soup | |
s = soup(file('radars.html')) | |
for span in s('span'): | |
if span.has_key('class') and span['class'].startswith('quickViewProblemId'): | |
print(span.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment