Scrap websites with nodejs!

Scrap websites with nodejs!

Scrap websites with nodejs!

I really wanted to experiment a little bit with nodejs. So some days ago a friend of mine told me that he used a cool python library in order to scrap from a site the information he wanted to! So that sounded to me like a very good exercise!

The idea is to use jQuery powerful selectors to extract whatever I wanted to from an html page. If I can do that, I can also extract the url of the next page and the put the mechanism to work again for the that page! The code I finally had to write was about 50 lines!

原文地址:https://www.cnblogs.com/lexus/p/2402829.html