rap

  1. He was not guilty, he just took the rap.
  2. He was getting one bum rap after another.
    Please explain their meanings.

Two completely different idioms. Take the rap means take the blame: idioms.thefreedictionary.com/take+the+rap

Bum rap means an unjust punishment: thefreedictionary.com/bum+rap