Skip to content

d3QUone/vksmmtool

Repository files navigation

VKSMM is a cool service to get the most popular content from your "vk.com" communities

Screenshot:

Main screen

How to:

  1. Setup required modules in virtual environment:
$ virtualenv venv
$ venv/bin/pip install -r requirements.txt
  1. Create MySQL database
$ mysql -e "create database vksmmdb charset utf8"
  1. Run parser [in a screen]
$ screen python vkparser.py

CTRL+A+D to detach the screen, CTRL+C to kill. Actually this is a bad practice but easy to start.

  1. Setup NGNIX-server and Gunicorn, following this article, restart it and run app from the project folder, e.g:
$ sudo /etc/init.d/nginx restart
$ cd user/vksmmmtool
$ gunicorn -w 2 -b localhost:8000 server:app --daemon

This project in my portfolio: http://vksmm.info/project/4/

Future steps:

  • Write deploy scripts
  • Save nginx, gunicorn and upstart scripts for backend and parser