| 1 | COVID-19 scrapers |
| 2 | ================= |
| 3 | |
| 4 | Quick and dirty. Likely to break as soon as data source HTML structure changes. |
| 5 | |
| 6 | Example usage |
| 7 | ------------- |
| 8 | $ fetch-case-count-usa-ny -h |
| 9 | Usage: fetch-case-count-usa-ny [LOCATION] |
| 10 | |
| 11 | LOCATION = |
| 12 | Albany |
| 13 | Broome |
| 14 | Delaware |
| 15 | Dutchess |
| 16 | Erie |
| 17 | Greene |
| 18 | Herkimer |
| 19 | Monroe |
| 20 | Montgomery |
| 21 | Nassau |
| 22 | Orange |
| 23 | Putnam |
| 24 | Rockland |
| 25 | Saratoga |
| 26 | Schenectady |
| 27 | Suffolk |
| 28 | Tioga |
| 29 | Tompkins |
| 30 | Ulster |
| 31 | Westchester |
| 32 | New York State (Outside of NYC) |
| 33 | New York City: |
| 34 | Total Positive Cases (Statewide) |
| 35 | |
| 36 | Default LOCATION: |
| 37 | New York City: |
| 38 | |
| 39 | $ fetch-case-count-usa-ma -h |
| 40 | Usage: fetch-case-count-usa-ma [LOCATION] |
| 41 | |
| 42 | LOCATION = |
| 43 | Boston: |
| 44 | Massachusetts: |
| 45 | |
| 46 | Default LOCATION: |
| 47 | Boston: |
| 48 | |
| 49 | $ fetch-case-count-usa-ny 2> /dev/null |
| 50 | 329 |
| 51 | |
| 52 | $ fetch-case-count-usa-ma 2> /dev/null |
| 53 | 29 |
| 54 | |
| 55 | $ fetch-case-count-usa-ny 'Total Positive Cases (Statewide)' 2> /dev/null |
| 56 | 729 |
| 57 | |
| 58 | $ fetch-case-count-usa-ma 'Massachusetts:' 2> /dev/null |
| 59 | 164 |