Skip to content

Instantly share code, notes, and snippets.

@okb1100
Last active October 30, 2021 16:40
Show Gist options
  • Save okb1100/2b8e7050dde2df2360a89b02953b68b3 to your computer and use it in GitHub Desktop.
Save okb1100/2b8e7050dde2df2360a89b02953b68b3 to your computer and use it in GitHub Desktop.
#scraping
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