crawler-3t
Phâm tích html
Last updated 4 years ago by trungdang .
Repository · Original npm · Tarball · package.json
$ cnpm install crawler-3t 
SYNC missed versions from official npm registry.

Crawler 3T

Đây là thư viện dùng để bóc tách dữ liệu html

Installation

npm install crawler-3t

Usage

Class ModelMongoose

  1. mod_sources
  • name_index
  • SourcesNews
  • Articles
  1. mod_baogom
  • name_index
  • mod_acticles
  • mod_links
  • mod_categories

Class HtmlParser

  1. GetHtmlDoc
  • body: html
  • $: jquery
  GetHtmlDoc(url,function(error, body, $));

Class HtmlExtract

  1. getTitle

 var title =  getTitle($);

  1. getDesc

 var description =  getDesc($);

  1. getImage

 var url_image =  getImage($);

Class ReadRss

  1. getListFeed

getListFeed(url_rss,function(error,list_feed));

  1. getListFeedByBodyXml

getListFeedByBodyXml(bodyXml,function(error,list_feed));

UploadImage

var UploadImage = require('crawler-3t').UploadImage;
var img_url = 'https://s.aolcdn.com/hss/storage/midas/8935b712fc16c493a66b57c8b5ec7f03/203531071/google-translate-ai-2016-03-11-01.jpg';

UploadImage.Upload_Postimage_Org(img_url, function(data) {
    console.log(data);
});

Current Tags

  • 0.0.11                                ...           latest (4 years ago)

11 Versions

  • 0.0.11                                ...           4 years ago
  • 0.0.10                                ...           4 years ago
  • 0.0.9                                ...           4 years ago
  • 0.0.8                                ...           4 years ago
  • 0.0.7                                ...           4 years ago
  • 0.0.6                                ...           4 years ago
  • 0.0.5                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 1
Last Day 1
Last Week 1
Last Month 10
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |