Created
September 27, 2021 15:30
-
-
Save DZuz14/abd0b434a3f58cbb34dd5eb91ca9f70e to your computer and use it in GitHub Desktop.
Corona 3
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
await page.goto("https://www.worldometers.info/coronavirus/"); | |
await page.waitForSelector("table#main_table_countries_today"); | |
await page.evaluate(() => { | |
const tbody = document.querySelector( | |
"table#main_table_countries_today tbody" | |
); | |
const trs = Array.from( | |
tbody.querySelectorAll("tr:not(.total_row_world)") | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment