Created
August 7, 2013 12:15
-
-
Save tiefenb/6173561 to your computer and use it in GitHub Desktop.
blippex spam
This file contains hidden or 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 request = require('request'); | |
var async = require('async'); | |
var worker = async.queue(function(url, cb) { | |
var data = { | |
"url": url, | |
"time_spent": 199999, | |
"created_at": new Date().toGMTString() | |
}; | |
var r = request.post('https://api.blippex.org/add/', function(err, res) { | |
console.log(res.body); | |
cb(); | |
}); | |
var form = r.form(); | |
for(var key in data) { | |
if(data.hasOwnProperty(key)) { | |
form.append(key, data[key]); | |
} | |
} | |
}, 1); | |
setInterval(function() { | |
var nextreq = Math.random()*100000; | |
console.log('next request:', nextreq); | |
setTimeout(function() { | |
worker.push('http://iglo.de/'); | |
}, nextreq); | |
}, 1000); |
But of course, we are always trying to improve it, we have already some ideas like getting a one time token for every request, but if you have a better idea please let us know!
Nope sorry and I guess I am 9 years too late for the reply :-D
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What i forgot:
And, if you woul dhave to do it every day, because when the result is older than 90 days it will be deleted, and when people are selecting a different time frame it will also not show up.