https://sil-philippines-languages.org/online/ivb/dict/lexicon/lx00001.html
start the environment of the project using
the activate command inside the /Scripts/ directory
- bs4 (BeautifulSoup4)
- requests# recommend installation inside an venv environment
pip install bs4, requestspython src/main.pycommand parameters
--count- number (optional)--start- number (opional)--init- null (first-run only / or consecutive database rebuild)
The command initialized the Database on add default Ten(10) Items
python src/main.py --init# lets assume that you already run the above statement, then run this after
python src/main.py --count 50 --start 11This will add items from Page 11 to 50
NOTE: we already added 10 items from 10 pages upon initialization so it says we have to start at 11
python src/main.py --init --count 50This will initialize Database and add 50 items from 50 Pages
Be sure when specifying a
--startvalue it must not overlapped with your previous--countvalue command
python src/main.py --init --count 100
# and then subsequently run
python src/main.py --start 99 --count 500this will return an error because item 99 and 100 overlapped already
generate a list of words as a JSON file
python src/words.pyThis will give an error if the database has not been created yet