Helper python tool for translate web page from english to russian in educatinal purposes
Original page (fragment)
Page after processing (fragment)
- Install python
- Install libraries:
- nltk
- beautifulsoup4
- eng-to-ipa
- Save desired web-page from browser to disk (html only)
- Run
python preprocess.py
- Enter path to the saved web-page when prompted
- Enter CSS-selector for page main content. You can use developer tools from browser for it
- Mark words from page as known (
y
) or unknown (n
). Typestop
for interrupt - When Google Translate web-page opened copy translation to clipboard
- Paste translation to prompt
- Prepared page will be saved near the original page
If you want to get pdf from processed page, use Print to pdf function in your browser.
You can open file unknown.txt
in Excel to use it as dictionary for learning words. See screenshot below:
If you want to use method of Spaced repetition for study words, you can
convert your unknown.txt
dictionary to Anki flashcards.
Step-by-step manual:
- Download and install Anki from official site
- Run
convert_to_anki.py
. It will produce fileanki.txt
- In Anki click File -> Import... and select file
anki.txt
. Don't forget to select "HTML in fields" checkbox:
- Now you can use your new deck to study words
You also can import your deck to mobile app