Spiders are predators.

An excerpt from the article 28 facts about spiders

Most of them feed only on meat, although there are species (Bagheera Kipling) whose diet consists of 90% plant ingredients. The young of some spider species feed on plant nectar. There are also scavenger spiders, which feed mainly on dead arthropods.