diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-02-20 16:05:25 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-02-20 16:05:25 +0100 |
| commit | 7885a180e1b3ddc37ef2192c74a897b911e48a14 (patch) | |
| tree | bac496d50008c035668d7e6c0143b7ecabd3193d /scraper/s2-geocode.py | |
| parent | 8f0d09f4c5bfb8b09757c3dbdb6d29061f0405d4 (diff) | |
adding countries to citation feed / geocode step
Diffstat (limited to 'scraper/s2-geocode.py')
| -rw-r--r-- | scraper/s2-geocode.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scraper/s2-geocode.py b/scraper/s2-geocode.py index 25eb6f8a..989c17bf 100644 --- a/scraper/s2-geocode.py +++ b/scraper/s2-geocode.py @@ -40,10 +40,10 @@ def s2_geocode(fn): print("found: {}".format(name)) cname = name for word in name.split(', '): - if "university" in word.lower(): + if "university" in word.lower() and 'california' not in word.lower(): cname = word worksheet.append_row([ - cname, name, location.address, location.latitude, location.longitude, 'edu' + cname, name, location.address, location.latitude, location.longitude, 'edu', '', ]) valid.append([ name, @@ -77,3 +77,4 @@ def remove_department_name(name): if __name__ == '__main__': s2_geocode() + |
