/49ja_game

Primary LanguagePythonMIT LicenseMIT

49ja Game Data

Introduction

Welcome to 49ja Game data! This application is designed to help players of the bet9ja 49ja game make more informed decisions by providing access to historical data.

This application gathers data from the bet9ja 49ja game website through web scraping using selenium and presents the data in easy-to-read tables and charts. You can view data for time intervals, and compare data from different periods to see trends and patterns.

We hope that our application will be a useful tool for players looking to analyze and understand the bet9ja 49ja game data.

Installation

  1. To use this application on your personal computer (PC), you must have python3 and postgreSQL installed. If you have not installed them, follow the link below setup python and postgreSQL for your pc.
  1. After installation create a new database using the steps here. Take note of the database name and your password to postgresql

  2. Copy and paste the command below into your terminal to clone the repository into your machine.

$ git clone https://github.com/BenFaruna/49ja_game
  1. Navigate into the project directory from your terminal using the command.
$ cd 49ja_game
  1. (optional) You can create a virtual environment by following the steps outlined here. Activate the virtual environment.

  2. Install packages needed for the application to run using the command

49ja_game$ pip install -r requirements.txt
  1. Add your database url as an environmental variable.

On Windows using powershell

ps 49ja_game> $env:DB_URL='postgresql://postgres:<database-password>@localhost/<database-name>' 

On Linux

49ja_game$ DB_URL='postgresql://postgres:neodynamics@localhost/49ja_data_db'

After adding the database url as an environmental variable, you can start either the automation script for gathering data (main.py) or the web application that shows the data in the application (app.py) or both at the same time using two terminals. When using two terminals, step 7 must be done for both terminals.

  1. Start the application
49ja_game$ python main.py
49ja_game$ python app.py
  1. You can view the data by accessing your database directly or opening the link http://localhost:5000 on your browser.

Usage