JacobGeoGeek / canada-lottery-results

API to retrive the Canadian lottery results.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Canada Lottery API

Overview

The Canada Lottery API is a code base that scrapes the lottery results from external websites and sends the data into JSON.

Requirements

To use this API Project, you will need to install Python version 3.12 or later.

Setup

After installing Python, you must

  • Change the directory to canada-lottery-results cd canada-lottery-results
  • Create a virtual environnement (e.g: python -m venv \path\to\virtual\environnement).
  • Install the dependencies via the pip command: pip install -r requirements.txt.
  • Start the API by typing the following command: python WORK_FOLDER/src/main.py.

Environnement variables

  • ENVIRONNEMENT: PROD or DEV. defeaut is DEV.
  • ROOT_PATH: When the API is served via a proxy, the variable will add an extra path prefix that is not seen by your application. For more information: Behind a Proxy. Default value: ""
  • PORT: Specify the port that the API is running. Default value: 8080.
  • HOST: The IP address that the API is running. Default value: 0.0.0.0
  • RAPIDAPI_PROXY_SECRET: The variable is used for production only. Its value from the RapidAPI platform checks if the incoming requests come from the RapidAPI only. Default value: "".

Stack

This project uses the following libraries:

About

API to retrive the Canadian lottery results.


Languages

Language:Python 98.4%Language:Dockerfile 0.7%Language:Mako 0.7%Language:Shell 0.2%