Skip to content

Instantly share code, notes, and snippets.

@jilljenn
Created June 5, 2019 17:22
Show Gist options
  • Save jilljenn/9857519a691becf374fe8b11b8fdb9d1 to your computer and use it in GitHub Desktop.
Save jilljenn/9857519a691becf374fe8b11b8fdb9d1 to your computer and use it in GitHub Desktop.
Play Bakuman. live-action's ending when Inria at last dares to update their admission ranking
from urllib.request import urlopen
from datetime import datetime
import os
page = urlopen('https://www.inria.fr/institut/carrieres-metiers/offres/charges-et-chargees-de-recherche-de-classe-normale/admission')
admission = page.read().decode('utf8')
page = urlopen('https://www.inria.fr/institut/carrieres-metiers/offres/charges-et-chargees-de-recherche-de-classe-normale/admissibilite')
admissibility = page.read().decode('utf8')
if 'refusé' not in admission or 'Admission' in admissibility:
print('OK', str(datetime.now()))
os.system('/usr/local/bin/mpv ~/Movies/stj.mkv -ss 9') # Play https://www.youtube.com/watch?v=LIlZCmETvsY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment