+ 1
How do projects like this web scrape without Node.js?
Hello, the only way to webscrape from a website which you are not currently on is through Puppeteer and Node,js. I have seen many Coronavirus tracking projects like this one: https://code.sololearn.com/W4pNnBG0JV1S/#html that somehow manage to scrape information from another website using only conventional JavaScript/jQuery methods. Can someone PLEASE explain to me how this works, or even just the name of it so I can look it up myself? Thank you in advance.
2 odpowiedzi
+ 3
I can see in the JS code they use AJAX to asynchronously get data from a remote source.
AJAX is the most basic building block of modern Web. It allows web pages to obtain data without having to refresh (that is, reissue a HTTP request).
In jQuery, a general AJAX call is written as $.ajax.
Reference to get started: https://www.w3schools.com/xml/ajax_intro.asp
+ 3
https://www.youtube.com/playlist?list=PLkqwj9vc20pX36wThr2A6DZx4MVcJvnhe