finnoshea / AffordableTravelTime

Affordability versus travel time for the peninsula
GNU General Public License v3.0
1 stars 0 forks source link

Deprecated zip codes #3

Open nadnerbity opened 5 years ago

nadnerbity commented 5 years ago

There is an issue where if you search for zipcodes that are deemed deprectated the page returns results for the next zipcode over. The program doesn't save those zipcodes but it will go through all the pages and waste time if there are a lot of them. There is a class="deprecated-zipcode" div but I can't get BS to find it.

This issue doesn't seem to break the program, but would be nice to fix.

nadnerbity commented 5 years ago

94101 is a zipcode that no longer exists.

nadnerbity commented 5 years ago

You can use "soup.findAll("div", {"class" : "deprecated-zipcode"})" but you have to add a pause to the page load otherwise the JS hasn't populated the fields and it won't find it.