Advertisement
Guest User

horario epinfante

a guest
Oct 25th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. import urllib2
  2.  
  3. pagina = urllib2.urlopen("http://moodle.epinfante.com/elearning/mod/folder/view.php?id=5").read()
  4.  
  5. nr = 1 #nr do horario ex: 004
  6.  
  7. while True:
  8.     string = '00' + str(nr)
  9.    
  10.     if pagina.find(string) == -1:
  11.         print 'horario numero ' + string + ' nao encontrado'
  12.         break
  13.     else:
  14.         print 'horario numero ' + string + ' encontrado'
  15.         nr += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement