The meaning of "scavenge" is:
4. search for something
When animals like raccoons scavenge after dark, they are searching for food, often in garbage cans or other places where they can find something to eat. In this context, scavenging refers to the act of looking for and collecting food or other items, especially in a scavenger hunt like manner, in order to survive or satisfy their hunger.