Skip to content

Instantly share code, notes, and snippets.

View denis-cto's full-sized avatar
💭
Seeking for opportunities

Denis Volkov denis-cto

💭
Seeking for opportunities
  • Seeking Fullstack developer position
  • Russia
View GitHub Profile
@denis-cto
denis-cto / parse.js
Created September 19, 2017 11:30
dom.gosuslugi.ru parser for companies names and emails
const args = require("node-args-parser")(process.argv)
var number = args.number;
if (number === 'undefined') process.exit();
console.log("\007");
var posix = require('posix');
posix.setrlimit('nofile', {soft: 10000}); // multiple connections require a lot of open session files
var RateLimiter = require('request-rate-limiter');
var limiter = new RateLimiter({
rate: 200 // requests per interval,