Server for ouat.ac.in Agri Advisory Services
This is a service to provide the the agro advisory data provided by OUAT. One can use the environment and run the python script to gather all the data in provided folder. Steps to follow:
- Run the script and required JSON data will be stored.
- The data can be accessed statically through github pages deployment.
JSON files will be stored in following folder and naming conventions once scrapped.
Districtwise complete data:
root/history/{date}_{district}.json
Latest data for each district:
root/latest/{district}.json
python3 -m venv venv
source venv/bin/activate
Setup an OpenAI API key in the environment variables or in a .env file.
OPENAI_API_KEY = 'sk-XXXXXXXXX'
Run the following to install the required libraries.
pip install -r requirements.txt
Run the script contained in main.py
python3 main.py