This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sandcrawler = require("sandcrawler"), | |
//artoo = require("sandcrawler/node_modules/artoo-js"), | |
artoo = require("artoo-js"), | |
logger = require("sandcrawler-logger"), | |
fs = require("fs"), | |
data = []; | |
// Declare a plugin | |
var throttle = function(opts) { | |
return function(scraper) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Handle script with no argument for DEBUG as an artoo bookmarklet | |
if (typeof(arguments) == "undefined") { | |
arguments = [60, 20, 15, function(){console.log("FINISHED!");}]; | |
} | |
(function(endScript, timeout, idle_timeout, ajax_timeout) { | |
var timeout = Math.max(30, timeout) * 1000, | |
idle_timeout = idle_timeout * 1000, | |
ajax_timeout = ajax_timeout * 1000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bash(object): | |
@property | |
def out(self): | |
return self._wrapped | |
def __mod__(self, other): | |
self._wrapped = other | |
return self |
NewerOlder