crawler-js
Advanced tools
Comparing version 0.0.14 to 0.0.15
module.exports = require('./lib/index'); |
@@ -0,0 +0,0 @@ checkStatusHeader = function(code, permitted){ |
@@ -52,3 +52,3 @@ readCsv = function(font,url,config){ | ||
} | ||
if(typeof font['encode'+font['type']] == 'undefined'){ | ||
if(typeof font['encode'+font['type']] != 'undefined' && font['encode'+font['type']] == true){ | ||
row[data] = encodeURIComponent(row[data]); | ||
@@ -55,0 +55,0 @@ } |
@@ -0,0 +0,0 @@ getCombination = function(allOptionsArray, combination){ |
@@ -0,0 +0,0 @@ getHtml = function(font, url,config){ |
@@ -0,0 +0,0 @@ toCsvValue = function(theValue, sDelimiter) { |
@@ -0,0 +0,0 @@ lettersCombinations = function(size){ |
CrawlerJS = function(font,config){ | ||
if(typeof config == 'undefined'){var config = {};} | ||
if(typeof font.statusHeader == 'undefined'){font.statusHeader = [200];} | ||
if(typeof font.preview == 'undefined'){font.preview = 0;} | ||
font.type = 'get', | ||
@@ -207,6 +210,6 @@ font.getAttributes = [], | ||
words = function(font,url,config){ | ||
if(typeof font['encode'+font['type']] != 'undefined' && font['encode'+font['type']] == 0){ | ||
if(typeof font['encode'+font['type']] != 'undefined' && font['encode'+font['type']] == true){ | ||
var urlTemp = encodeURIComponent(font[font['type']+'Attributes'][font[font['type']+'CurrentEntry']]['words'][font[font['type']+'Attributes'][font[font['type']+'CurrentEntry']]['init']]); | ||
}else{ | ||
var urlTemp = font[font['type']+'Attributes'][font[font['type']+'CurrentEntry']]['words'][font[font['type']+'Attributes'][font[font['type']+'CurrentEntry']]['init']]; | ||
}else{ | ||
var urlTemp = encodeURIComponent(font[font['type']+'Attributes'][font[font['type']+'CurrentEntry']]['words'][font[font['type']+'Attributes'][font[font['type']+'CurrentEntry']]['init']]); | ||
} | ||
@@ -213,0 +216,0 @@ url[font['type']] = font[font['type']].replace(font[font['type']+'Attributes'][font[font['type']+'CurrentEntry']]['parameter'],urlTemp); |
@@ -0,0 +0,0 @@ randomAgent = function(){ |
@@ -1,7 +0,14 @@ | ||
getUrlParams = function(qs){ | ||
getParams = function(qs){ | ||
var qs = qs.split("+").join(" "); | ||
var params = {}, tokens, | ||
re = /[?&]?([^=]+)=([^&]*)/g; | ||
var first = 1; | ||
while (tokens = re.exec(qs)){ | ||
if(first == 1){ | ||
var tempParam = tokens[1].split('?'); | ||
params[decodeURIComponent(tempParam[1])] = decodeURIComponent(tokens[2]); | ||
first = 0; | ||
}else{ | ||
params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]); | ||
} | ||
} | ||
@@ -34,1 +41,7 @@ return params; | ||
} | ||
rawUrlDecode = function(str){ | ||
return decodeURIComponent((str + '').replace(/%(?![\da-f]{2})/gi, function(){ | ||
return '%25'; | ||
})); | ||
} |
@@ -5,3 +5,3 @@ { | ||
"homepage" : "http://crawlerjs.org", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "crawler", |
@@ -0,0 +0,0 @@ 217.147.215.49:80 |
@@ -0,0 +0,0 @@ <img src="http://crawlerjs.org/content/images/2014/Jun/logo-5.png" alt="Crawler-js, Open source framework crawler in node.js" width="432px" height="81" /> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1024
96748
17