They require hard wood such as oak to munch on as well as leaf debris. That is their main food item. No soft woods such as pine. Oak good. Pine BAD. They like their fruits and veggies rotten. So that apple you left in the back of the fridge that has turned to mush is perfect for them. They like bananas and lettuce. And sweet potato. I feed mine baby food and hermit crab food often. Make sure everything is organic or washed really well.
They are easy to keep, but sometimes they are rough handled before they get to you. Do not drop!!!