If you’ll try to google “web scraping tutorial” you’ll get a bunch of tech articles on the subject that tells you how to achieve the result using python.
https://qoob.cc/web-scraping/
origin - https://www.pipiscrew.com/2020/10/web-scraping-with-js/ web-scraping-with-js