rummage

- Search unsystematically and untidily through a mass or receptacle

... The dog rummaged through the trash to look for food.