PNA.fi koodi

pikante.py 724B

12345678910111213141516171819202122232425262728
  1. import pnalib
  2. import html.parser
  3. # Pikante does not have any student restaurants at the moment
  4. pikante_url = "http://www.pikante.fi/lounaslistat-pdf";
  5. restaurant_info = [
  6. [ "(TAYS) Finnmedin ravintola", "$pky_url", "all", "middle" ],
  7. [ "(TAYS) Café Olive", "$pky_url", "all", "middle" ],
  8. [ "(TAYS) Ellipsi", "$pky_url", "all", "middle" ]
  9. ]
  10. class PikanteHTMLParser(html.parser.HTMLParser):
  11. def handle_starttag(self, tag, attrs):
  12. pass
  13. def handle_endtag(self, tag):
  14. pass
  15. def handle_data(self, data):
  16. pass
  17. def get_restaurants(use_old, week):
  18. #data = pnalib.get_file(pikante_url, "pikante.html", use_old)
  19. #parser = PikanteHTMLParser()
  20. #parser.feed(data)
  21. return []