rabbitmq-connect-serp
v1.0.23
Published
## Installation
Downloads
9
Readme
npm i rabbitmq-connect-serp for Node.JS
Installation
npm i rabbitmq-connect-serp
Enviroment Requrment Example
RANKING_PREFETCH=10
RABBITMQ_CONNECTION_STRING=amqp://username:passwod@host:port
RANKING_DOMAIN_DATABASE=ranking_domains
QUEUE_NAME="NEWONE"
SERP_API_KEY=""
TIME_PROCESS_FOR_RUNNING_SCRIPT=7
Calling function
const {sendQueue,receiveQueue} = require("rabbitmq-connect-serp");
sendQueue().then((res) => {
console.log(res);
}).catch((error) => {
console.log(error);
});
const {receiveQueue} = require("rabbitmq-connect-serp");
receiveQueue().then((res) => {
console.log(res);
}).catch((error) => {
console.log(error);
});