Conlyse is a project which is all about analysing the browser game "Conflict of Nations".
- 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
Conlyse contains of four components, each of them is necessary.
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.
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.
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.
Currently, only the website is available but other clients might be added later.
The website is written in Javascript using react to present the data in a interactive and beautiful way.
- 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.