Sort valid NY locations
[covid-19-scrapers.git] / fetch-case-count-usa-ny
index b3bd251..c50288c 100755 (executable)
@@ -16,6 +16,8 @@ VALID_LOCATIONS='
     Monroe
     Montgomery
     Nassau
+    New York City:
+    New York State (Outside of NYC)
     Orange
     Putnam
     Rockland
@@ -24,11 +26,9 @@ VALID_LOCATIONS='
     Suffolk
     Tioga
     Tompkins
+    Total Positive Cases (Statewide)
     Ulster
     Westchester
-    New York State (Outside of NYC)
-    New York City:
-    Total Positive Cases (Statewide)
     '
 DEFAULT_LOCATION='New York City:'
 
@@ -51,7 +51,11 @@ curl 'https://health.ny.gov/diseases/communicable/coronavirus/' \
 | hxpipe \
 | awk -v location="$location" '
     BEGIN {
-        target_path = "/html/body/div/div/div/div/div/div/table/tr/td"
+        # 2020-03-16 morning-afternoon
+        #target_path = "/html/body/div/div/div/div/div/div/table/tr/td"
+
+        # 2020-03-16 late evening 22:30
+        target_path = "/html/body/div/div/div/div/div/div/tr/td"
     }
 
     /^[\(\)]/ {
This page took 0.022271 seconds and 4 git commands to generate.