crawler-html-3t
v1.0.10
Published
Phâm tích html
Downloads
5
Maintainers
Readme
Crawler Html 3T
Đây là thư viện dùng để bóc tách dữ liệu html
Installation
npm install crawler-html-3t --save
Usage
Class ModelMongoose
- mod_sources
- name_index
- SourcesNews
- Articles
- mod_baogom
- name_index
- mod_acticles
- mod_links
- mod_categories
Class HtmlParser
- GetHtmlDoc
body: html
$: jquery
GetHtmlDoc(url,function(error, body, $));
Class HtmlExtract
- getTitle
var title = getTitle($);
- getDesc
var description = getDesc($);
- getImage
var url_image = getImage($);
Class ReadRss
- getListFeed
getListFeed(url_rss,function(error,list_feed));
- getListFeedByBodyXml
getListFeedByBodyXml(bodyXml,function(error,list_feed));