To scrape the barrel is to use the worst things or people because nothing or no one else is available.
Examples:
You chose Mark to represent us at the meeting? That's really scraping the barrel.
A: What are you wearing to the wedding?
B: The same dress as last time. I know I'm scraping the barrel. I just can't afford anything new!