Manipulate Ukrainain words and letters.
Project description
ukrainian
ukrainian
This repository consists of Python scripts that generate learning aides for learning Ukrainian. I currently have three available scripts. Each has a separate function.
*_get-table.py
This first script gets tables from http://lcorp.ulif.org.ua/dictua/ for each word available on the website. Once run, it will start downloading the tables from the website and searching for the additional words. The program requires you to have Google Chrome and to download the associated Google Chrome driver. You must put the driver in the ../tools directory. There are OS dependencies when using the Selenium/Chrome Driver combination. I have only tested this on MacOS Sierra, MacOS Catalina, and CentOS 8.0. I cannot ensure that it will work on other operating systems.
The get-table script uses a very "hacky" method to pull the table from lcorp.ulif.org/. If anyone is having issues pulling from an ASPX server due to the VIEWSTATE and EVENTVALIDATION fields in the request, then this is the best work-around I was able to find. Keep in mind that my method is very slow - it pulls tables at a rate of about 4 per minute. Since I pulled >260,000 tables, this was a total of 45 machine-days of runtime.
read_html.py
The second script reads the tables that are downloaded from the first script. The script parses through the unpredictable tables and handles several different exceptions. The script deals with encoding issues as well. The table values are stored as dictionaries in JSON format.
daily_article.py
The third script generates a website with a daily article. The website pulls the main article of the day from https://ua.korrespondent.net/ and adds the accents from the dictionaries generated in the read_html.py script.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ukrainian-0.0.3.tar.gz
.
File metadata
- Download URL: ukrainian-0.0.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52f52816c971f422e2e5d1f0b01ee8b74484b1121e6b6a94054cf81b1effef2d |
|
MD5 | 5999238b0ccb40c9cd34cf1df5512599 |
|
BLAKE2b-256 | 4b2a42d06c5e5b507c412b04471eb65b4b3c90e33b54bd12ac48d89d99a7088f |
File details
Details for the file ukrainian-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: ukrainian-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f27f68a1895a61bc43653d6ff730fa5fcfff2b959f9decca4a38ad18df1511b |
|
MD5 | b5944ac3ad819e1ea7b3ee7a2a089c67 |
|
BLAKE2b-256 | 86a04a8a8d56462510696debbc3f5f1226c4c61101b3cab87424ce0a7c4d24f2 |