From 56193ec782896067d78a92cde6e6f96c61ad518a Mon Sep 17 00:00:00 2001 From: siengrain Date: Thu, 17 Feb 2022 20:51:20 +0000 Subject: [PATCH] Delete 'aflv.py' --- aflv.py | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 aflv.py diff --git a/aflv.py b/aflv.py deleted file mode 100644 index 0aa6895..0000000 --- a/aflv.py +++ /dev/null @@ -1,43 +0,0 @@ -from bs4 import BeautifulSoup -import notify2 -import requests -from requests import get -import time -import webbrowser - -link = 'https://jkanime.net/' -anime = '' -notify2.init('A-notifier') -ep = '29' -def linkObtainer(anime): - lonk = anime.replace(' ', '-') - lonk = lonk.replace('(', '') - lonk = lonk.replace(')', '') - lonk = lonk.lower() - return lonk -def isItUp(anime): - on = 0 - webp = requests.get('https://jkanime.net/') - soup = BeautifulSoup(webp.text, 'html.parser') - - recent_ani = soup.find_all('div', class_ = 'anime__sidebar__comment__item__text') - for div in recent_ani: - if div.h5.text == anime: - on = 1 - return on - - -while True: - online = isItUp(anime) - if online == 1: - n = notify2.Notification("Hiii" , - anime + " is up on JKanime", - "/home/siengrain/Stuff/aFlvNot/icon/sup.ico" # Icon name - ) - n.show() - link = link + linkObtainer(anime)+'/'+ep+'/' - webbrowser.open(link) - break - else: - print('not yet...') - time.sleep(300)