Last active
March 12, 2020 12:21
-
-
Save MrSunshyne/ee206dedf5b0cfe4303d5320b10fc15f to your computer and use it in GitHub Desktop.
Array of affected countries from CDC website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open the developer toosl console and execute the folowing command to get an array of countries listed on the page. | |
// Right click and copy object for convenience. | |
// For use on this page: https://www.cdc.gov/coronavirus/2019-ncov/locations-confirmed-cases.html | |
let nodes = document.querySelectorAll(".syndicate li"); | |
let list = [].slice.call(nodes); | |
let innertext = list.map(function(e) { return e.innerText; }); | |
console.log(innertext); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment