Skip to content
forked from zDox/Conlyse

Analytic tool for Conflict of Nations

License

Notifications You must be signed in to change notification settings

wdmason/Conlyse

 
 

Repository files navigation

Conlyse

Dashboard

Conlyse is a project which is all about analysing the browser game "Conflict of Nations".

Features

  • Every day new reports on economy
  • Determines minimum research of enemy countries
  • Lists most valuable cities of enemy countries
  • Beautiful graphs of victory points and economy developments

Concept

Conlyse contains of four components, each of them is necessary.

  • API

The API connects to the database, reformat the gathered data and sends it to the client. The API is written in python using flask. If you want to use the project in a production environment, which I wouldn't recommend, make sure to disable debug mode for flask.

  • Bot

The bot is a advanced web scraper which is build in python using selenium and the Python default request package. It pre sorts the data and writes it to the database. The bot uses cron jobs to run frequently.

  • Bot Manager

The Bot Manager as the name indicates it manages all the running bots which are tracking different games. Every bot hast to modes normal mode and fast mode. The normal mode should run every 6h if its a 4x speed game and every 24h if it's a 1x speed game because it saves a big amount of data. The normal mode can be run much more frequently because it only saves new newspaper article. Its a work around but in the future I want to add the ability to track own and enemy units and this scan should be run every 5 to 15 min otherwise you could miss important events.

  • Clients

Currently, only the website is available but other clients might be added later.

Website

The website is written in Javascript using react to present the data in a interactive and beautiful way.

Installation

Requirements:

  • Time
  • Patience
  • Knowledge about Mysql and Python

First copy the GitHub repository in your desired folder:

git clone https://github.com/zDox/Conlyse

Then install all python requirements: pip3 -r requirements.txt

Then first go through the installation of the api then install the Bot and so on.

About

Analytic tool for Conflict of Nations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 56.7%
  • JavaScript 42.8%
  • Other 0.5%