Commit 65c4c9be authored by zhaochangbo's avatar zhaochangbo

优化

parent 373bd725
...@@ -261,7 +261,7 @@ var getContentPage = function (self, options, callback) { ...@@ -261,7 +261,7 @@ var getContentPage = function (self, options, callback) {
var urls = []; var urls = [];
$('a').each(function (item) { $('a').each(function (item) {
var url = _completionUrl($(this).attr('href'), { var url = _completionUrl($(this).attr('href'), {
domains: self.domains, domains:self.url.match(self.contentPage.domains || '')[0] || self.domains,
url: self.url url: self.url
}); });
if (!url) { return true; } if (!url) { return true; }
......
{ {
"name": "almighty-parser-core", "name": "z-almighty-parser-core",
"version": "1.0.7", "version": "1.0.6",
"description": "crawler prser core", "description": "crawler prser core",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"url": "git@github.com:coolfishstudio/almighty-parser-core.git" "url": "git@github.com:coolfishstudio/almighty-parser-core.git"
}, },
"keywords": "crawler, parser", "keywords": "crawler, parser",
"author": "Yves", "author": "zhao",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"async": "^2.4.1", "async": "^2.4.1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment