Browse Source

cleaned junk

pull/1/head
root 3 years ago
parent
commit
75d1a06899
4 changed files with 17 additions and 3 deletions
  1. +16
    -2
      dependencies.sh
  2. +0
    -0
      scrape.py
  3. +1
    -1
      sozdik.sh
  4. +0
    -0
      theMostPoupularInNews

+ 16
- 2
dependencies.sh View File

@@ -1,2 +1,16 @@
pip3 install tkinter
pip3 install bs4
echo "Your distro? ( 1)Arch, 2)Debian): "
read distro
if [ $distro -eq 1 ]
then
sudo pacman -S python3 python-pip html2text
pip install bs4
chmod +x ./sozdik.sh
elif [ $distro -eq 2 ]
then
sudo apt install python3 python3-pip html2text
pip3 install bs4
chmod +x ./sozdik.sh
else
echo "You typed in: $distro"
echo "Wrong input, please type one of the two: (1/2)";
fi

GOOGLE.pyw → scrape.py View File


+ 1
- 1
sozdik.sh View File

@@ -3,5 +3,5 @@ agent="Mozilla/5.0 (Windows NT 10.0; x86_64; rv:67.0) Gecko/20100101 Firefox/67.
while true
do
read -p "Translate what word: " word
python3 GOOGLE.pyw -i "$(echo "https://sozdik.kz/ru/dictionary/translate/ru/kk/"$word"/")" | html2text
python3 scrape.py -i "$(echo "https://sozdik.kz/ru/dictionary/translate/ru/kk/"$word"/")" | html2text
done

+ 0
- 0
theMostPoupularInNews View File


Loading…
Cancel
Save