Spider eggs can be obtained as a monster drop from any spider species around Gielinor. Upon checking it will become a male or female spirit spider which can be used at the player-owned farm.
When the egg drops upon killing the spider the player receives the following message in chat: The spider leaves an egg behind. It has a similar appearance to red spiders' eggs when dropped.