Hamsters can eat pineapple, but in moderation. Pineapple is rich in vitamin C, fiber, and natural fructose, which are beneficial to humans and some animals. However, the following points should be noted when feeding pineapple to hamsters:

Moderation : Pineapple contains a certain amount of acidic substances and fructose, and excessive consumption may lead to indigestion or diarrhea. Therefore, it is recommended to eat pineapple as a snack rather than a main food.
Peel and remove seeds : When feeding pineapple to hamsters, the skin and seeds should be removed to avoid danger or discomfort.
Fresh and clean : The pineapple given to hamsters should be fresh and kept clean. Avoid feeding hamsters spoiled or contaminated food.
Observe its reaction : After feeding your hamster pineapple, observe its reaction. If it shows signs of discomfort or digestive problems, stop feeding it immediately and consult a veterinarian.
In general, pineapple can be a treat for hamsters, but it should be given in moderation and the above precautions should be taken to ensure the hamster's health and well-being.