Skip to content

Instantly share code, notes, and snippets.

@neonichu
Created June 27, 2016 22:56
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