Socket
Socket
Sign inDemoInstall

crawler-js

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crawler-js - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

0

index.js
module.exports = require('./lib/index');

@@ -0,0 +0,0 @@ checkStatusHeader = function(code, permitted){

2

lib/csv_to_json.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc