From 0bb9a16078ff66bee2c36c4cd848a513d954427d Mon Sep 17 00:00:00 2001 From: def <8384198-dettlaff@users.noreply.gitlab.com> Date: Wed, 1 Dec 2021 20:47:41 +0000 Subject: [PATCH] Delete idioto.py --- idioto.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 idioto.py diff --git a/idioto.py b/idioto.py deleted file mode 100644 index 4eb1dc9..0000000 --- a/idioto.py +++ /dev/null @@ -1,26 +0,0 @@ -import requests -from bs4 import BeautifulSoup # pip install bs4, pip install lxml -import re -import os - - - -url = 'ссылка для идиота' -response = requests.get(url) -soup = BeautifulSoup(response.text, 'lxml') - -def string_cleanup(x, notwanted): - for item in notwanted: - x = re.sub(item, '', x) - return x - -lol = (soup.get_text()) - -lol = lol.split() - -lol = lol[0:3] - -print(*lol) - - -os.system("notify-send 'ОЛО!' '" + str(lol) + "'")