Skip to content

Commit

Permalink
fix Konstanz scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
defgsus committed Apr 6, 2021
1 parent 06dbaf2 commit c9a0dd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sources/konstanz.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ def download_snapshot_data(self):

for tr in soup.find_all("tr"):
row = [td.text.strip() for td in tr.find_all("td")]
if len(row) == 3 and row[0] == "":

if len(row) == 2 and row[0] != "Parkmöglichkeit":
print(row)
parking_places.append({
"place_name": row[1],
"num_free": self.int_or_none(row[2]),
"place_name": row[0],
"num_free": self.int_or_none(row[1]),
})

return parking_places

0 comments on commit c9a0dd0

Please sign in to comment.