Skip to content

Take data from the al-I’rāb al-Mufassal (by Bahjat Abdul Wahid Saleh) and structure it for data analysis

Notifications You must be signed in to change notification settings

grabani/iraab-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Irab-scraper

This effort will look to take data from the al-I’rāb al-Mufassal (by Bahjat Abdul Wahid Saleh) and structure it for data analysis

Flask API Doc

you need to have docker installed

just run the start.sh file in sudo mode sudo sh start.sh

the container will start

Run it through python

python -m venv env 
source ./env/bin/activate
pip install -r requirements.txt
python ./test.py

Examples

use this command for interaction

❯ curl -X GET -H "Content-type: application/json" -d "{\"surah\" : \"10\", \"ayah\" : \"82\", \"word\" : \"1\"}" "localhost:56733/irreb"

{"irrab":" الواو استئنافية. يحق: فعل مضارع مرفوع بالضمة. الله لفظ الجلالة: فاعل مرفوع للتعظيم بالضمة."}
❯ curl -X GET -H "Content-type: application/json" -d "{\"surah\" : \"10\", \"ayah\" : \"82\", \"word\" : \"3\"}" "localhost:56733/irreb"

{"irrab":" الحق: مفعول به منصوب بالفتحة - أي يبينه. بكلماته: جار ومجرور متعلق بيحق والهاء ضمير متصل مبني على الكسر في محل جر بالإضافة.\n"}
❯ curl -X GET -H "Content-type: application/json" -d "{\"surah\" : \"1\", \"ayah\" : \"3\", \"word\" : \"3\"}" "localhost:56733/irreb"

{"irrab":{" الرَّحْمنِ الرَّحِيمِ":" صفتان- نعتان- للفظ الجلالة وهما نعتان للمدح.مجروران علامة جرّهما: الكسرة."}}

About

Take data from the al-I’rāb al-Mufassal (by Bahjat Abdul Wahid Saleh) and structure it for data analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages