To take advantage of something means to use an opportunity to achieve results, sometimes in an unfair way.
For example, the Spanish academic year is nearly over so my advice to all teachers is to take advantage of your pupil-free days, stop taking prescription drugs to get you through the day, and start recharging your batteries with some serious dance moves and Jason Derulo.