Skip to content

Unofficial python-library to interact with skolmaten.se.

License

Notifications You must be signed in to change notification settings

granis/skolmaten-python

Repository files navigation

molskaten also known as skolmaten-python

Molskaten is a fork of skolmaten-python, my main purpose is to play around with ci/cd-stuff.

pre-commit.ci status

This is a simple wrapper for the skolmaten.se service.

I wrote this because I needed a way to get the data for what I am going to eat in school for some stuff. So, why not publish it and help somebody else.

FOR NON-SWEDISH PEOPLE: skolmaten.se has data for what is going to be served in schools all over Sweden.

Usage

from molskaten import Molskaten

# You can find the id of your school by going to skolmaten.se, selecting your school, and looking in the address bar.
# For example this is what I see for polhemsskolan => https://skolmaten.se/polhemsskolan2/
schoolFood = Molskaten("polhemsskolan2")

weekly = schoolFood.getData()
print(weekly)

[{'date': datetime.datetime(2019, 10, 14, 0, 0), 'food': [u'Falukorv med potatismos', u'Potatisfrestelse med salladsost', u'ängsbiffar']}, ... {'date': datetime.datetime(2019, 10, 21, 0, 0), 'food': [u'Pastasås Arrabiata med linser och soltorkade tomater', u'Grönsakspaj']}]

Todo

  • Basic weekly data.
  • 100% Test coverage.
  • Full documentation.

About

Unofficial python-library to interact with skolmaten.se.

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages