Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
psychemedia committed Sep 24, 2015
1 parent 387978a commit df6471a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper.py
Expand Up @@ -12,7 +12,9 @@

def licenseConsultations(p):
data=[]
t=BeautifulSoup(p).find('div',id='pnlResults').find('table')
t=BeautifulSoup(p).find('div',id='pnlResults')
if t is not None: t=t.find('table')
else: return pd.DataFrame()
rows=t.findAll('tr')
cells=rows[0].findAll('td')
head=[c.text for c in cells]
Expand Down

0 comments on commit df6471a

Please sign in to comment.