Skip to content

Commit

Permalink
Actually one bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Apr 12, 2022
1 parent 72533e3 commit 9cf7708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -29,7 +29,7 @@
bs4 = BeautifulSoup(page, "html.parser")

rows = bs4.find(id='ContentPlaceHolderBody_gridViewLocalities').find_all('tr')
if len(rows) == 20:
if len(rows) >= 21:
# These postcodes probably will have extra pages
print("WARNING: Maximum number of rows reached on postcode {}".format(postcode))

Expand Down

0 comments on commit 9cf7708

Please sign in to comment.