X-Git-Url: https://git.xandkar.net/?p=covid-19-scrapers.git;a=blobdiff_plain;f=fetch-case-count-usa-ny;h=c50288cf0e38e9853696bac9cc6fb018414329fe;hp=b3bd2515ce594e911679abb8cfe821947e30bf87;hb=acd2abc3d867820c89d09d2fd1361c4046a71c4e;hpb=cb4ba2007be59c08a5d0458ed629d20ffae69c1f diff --git a/fetch-case-count-usa-ny b/fetch-case-count-usa-ny index b3bd251..c50288c 100755 --- a/fetch-case-count-usa-ny +++ b/fetch-case-count-usa-ny @@ -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" } /^[\(\)]/ {