Last active
October 30, 2021 16:40
-
-
Save okb1100/2b8e7050dde2df2360a89b02953b68b3 to your computer and use it in GitHub Desktop.
#scraping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib.request import urlopen | |
import re | |
import time | |
import winsound | |
print("2017-LYS Sonuçları Açıklandı Mı?") | |
def bip(): | |
while True: | |
winsound.Beep(2500,1500) | |
time.sleep(1) | |
def mainLoop(): | |
response = urlopen('http://sonuc.osym.gov.tr/') | |
html = response.read().decode('utf-8') | |
reg = re.search("2017-LYS Sonuçları (YGS ve Yerleştirme Puanları Dahil)", html) | |
if reg is None: | |
print('Henüz Açıklanmadı') | |
else: | |
print('----AÇIKLANDI----') | |
bip(); | |
time.sleep(60) | |
while True: | |
mainLoop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment