Skip to content

Instantly share code, notes, and snippets.

@neonichu
Created June 27, 2016 22:56
Show Gist options
  • Save neonichu/f6adb19c00c89ae9582a3e81669d0f07 to your computer and use it in GitHub Desktop.
Save neonichu/f6adb19c00c89ae9582a3e81669d0f07 to your computer and use it in GitHub Desktop.
Extract open radar numbers from radar web HTML
#!/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