您的位置:首页 > Web前端 > Node.js

Scrap websites with nodejs!

2012-03-17 01:43 369 查看
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!

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: