Skip to content

Commit

Permalink
Merge pull request #490 from biglocalnews/ne-fix
Browse files Browse the repository at this point in the history
Handle blank rows in NE tables
  • Loading branch information
palewire authored Jul 15, 2022
2 parents 64c6dbf + 03e807f commit b8a0f3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions warn/scrapers/ne.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def scrape(
output_rows = []
for row in table_list[0].find_all("tr")[1:]:
cell_list = row.find_all("td")
if len(cell_list) == 0:
continue
d = {
"Date": cell_list[0].text.strip(),
"Company": cell_list[1].text.strip(),
Expand Down

0 comments on commit b8a0f3e

Please sign in to comment.