Added get_departments() as a function in crawler.py