Scraping the Russian-Kazakh translation website. Requires your terminal to work with UTF-8 symbols
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

8 regels
269 B

  1. #! /bin/bash
  2. agent="Mozilla/5.0 (Windows NT 10.0; x86_64; rv:67.0) Gecko/20100101 Firefox/67.0"
  3. while true
  4. do
  5. read -p "Translate what word: " word
  6. python3 scrape.py -i "$(echo "https://sozdik.kz/ru/dictionary/translate/ru/kk/"$word"/")" | html2text -utf8 -nobs
  7. done