Skip to content

Instantly share code, notes, and snippets.

@VityaSchel
Created August 22, 2023 20:20
Show Gist options
  • Save VityaSchel/7cbe9761a71bca75d39f698167e27375 to your computer and use it in GitHub Desktop.
Save VityaSchel/7cbe9761a71bca75d39f698167e27375 to your computer and use it in GitHub Desktop.
Люди о войне

Скрипт для получения списков с сайта https://human-nonhuman.info/

Получите два списка: humans и nonhumans

const humans = Array.from(document.querySelectorAll('body > table td.comm:nth-child(2) .fio')).map(fio => fio.innerText).join('\n')
const nonhumans = Array.from(document.querySelectorAll('body > table td:last-child:not(:nth-child(1)) .fio')).map(fio => fio.innerText).join('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment