浏览代码

cleaned junk

pull/1/head
root 3 年前
父节点
当前提交
75d1a06899
共有 4 个文件被更改,包括 17 次插入3 次删除
  1. +16
    -2
      dependencies.sh
  2. +0
    -0
      scrape.py
  3. +1
    -1
      sozdik.sh
  4. +0
    -0
      theMostPoupularInNews

+ 16
- 2
dependencies.sh 查看文件

@@ -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 查看文件


+ 1
- 1
sozdik.sh 查看文件

@@ -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 查看文件


正在加载...
取消
保存