Socket
Socket
Sign inDemoInstall

undertherules

Package Overview
Dependencies
288
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    undertherules

Track, find, mining, parsing & analyzing data from social networks.


Version published
Maintainers
1
Created

Readme

Source

Under the rules of Sociometry

Track, find, mining, parsing & analyzing data from social networks.

Software provides nimble web-data operations. Current state: minimum viable product (MVP). Demo version.

Stack

  • Tested on Debian 8.5 x64 powered by flops cloud-hosting.
  • Redis - is an open source, in-memory data structure store, used as database, cache and message broker.
  • Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine.
  • Node Foreman - Node Implementation of Foreman
  • Telegram messenger CLI - Command-line interface for Telegram. Uses readline interface. (for tests).
  • kue - Kue is a priority job queue backed by redis, built for node.js.
  • request - Simplified HTTP request client.
  • telegram-node-bot - Module for creating Telegram bots.

Environment

Install system packages

  apt-get install    \
    sudo             \
    curl             \
    build-essential  \
    htop             \
    mc               \
    git-core         \
    tcl8.5           \
    nginx            \
    openjdk-8-jre    \
    tree             \
    apache2-utils

Installing Node.JS

  curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
  sudo apt-get install -y nodejs

Installing Redis

  wget http://download.redis.io/redis-stable.tar.gz
  tar xvzf redis-stable.tar.gz
  cd redis-stable
  make
  make test
  sudo make install
  sudo mkdir /etc/redis && sudo mkdir /var/redis
  sudo cp utils/redis_init_script /etc/init.d/redis_6379
  sudo nano /etc/init.d/redis_6379
  sudo cp redis.conf /etc/redis/6379.conf
  sudo nano /etc/redis/6379.conf
  sudo mkdir /var/redis/6379
  sudo update-rc.d redis_6379 defaults
  sudo /etc/init.d/redis_6379 start

Create new user

  sudo useradd --home-dir /home/bot --create-home --shell /bin/bash bot

Install npm global packages

  sudo npm install -g coffee-script foreman

Install package using npmjs.com

  npm install undertherules
  rm /etc/nginx/sites-enabled/default
  cd /etc/nginx/sites-enabled &&
  sudo ln -s /home/bot/node_modules/undertherules/etc/nginx/default
  sudo service nginx restart

Maintenance

Launching application without root privileges.

  cd ~/node_modules/undertherules
  nf start

Set as a global job using root access.

  sudo nf export -o /etc/init

Data-Sources

Future todo

  • Analytics for your Telegram bot (e.g. botan)
  • Tests using telegtam-cli.
  • class CreateJob
  • Add Russian & Hebrew comments in the code.
  • Create bot for flops.ru
  • Add new links from: vk.com/big.data
  • Authorization

Thanks

  • Romanovsky P. (Socialist Group)
  • Ashomko A. (Tiger Milk)
  • Pivkin P. (Buzz Like)
  • Korotun V. (Buzz Like)
  • Grigoriev E. (Esprite Games)
  • Bogomolov A. (Uroboros Team)
  • Akhmetov A. (RTA Moscow)
  • Maas E. (TASS News Agency)

LICENSE

MIT License

Copyright (c) 2016 Mikhail G. Lutsenko (m.g.lutsenko@gmail.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Keywords

FAQs

Last updated on 27 Nov 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc